-inparams with cookies

Has anyone successfully used an input’s -inparams with cookies? If so, what does it look like (obviously redact any actual cookies).

I can’t seem to get mine to work.

Cheers,
-Kessler

For anyone looking for this in the future, the incantation requires the full raw cookie spec separated by newlines, not just the cookie name/value.

Your source creation would look something like this:

commands.addSources([[‘https://some.url/file.mp4’, ‘+inparams’, ‘cookies=(rawCookieString)’]]

The downside I’m seeing is I don’t think there’s a way to update the cookies after it has loaded without changing the source, which is one of the things I’m trying to avoid.

Anyone happen to know how to modify an existing source’s inparams so I can occasionally update a cookie?

Thanks,
-Kessler