ryaowe
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2011
10:11 AM
HLS cookie support
I've read several other threads that indicate that Roku doesn't directly support cookies. Does this mean that BrightScript doesn't have access to cookies? Or that Roku ignores Set-Cookie headers altogether? Are there any plans to add support for cookies, specifically in the context of HLS?
We're doing live streaming using HLS, and some session information is stored in a cookie that is sent to the client using a standard Set-Cookie HTTP header. In a subsequent request to reload the m3u8, the Cookie header is not present. This seems like a bug, since the HLS specification mentions cookie support, but we were wondering if there is something we need to do to enable it. (see http://tools.ietf.org/html/draft-pantos ... section-10)
We're doing live streaming using HLS, and some session information is stored in a cookie that is sent to the client using a standard Set-Cookie HTTP header. In a subsequent request to reload the m3u8, the Cookie header is not present. This seems like a bug, since the HLS specification mentions cookie support, but we were wondering if there is something we need to do to enable it. (see http://tools.ietf.org/html/draft-pantos ... section-10)
4 REPLIES 4


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2011
10:17 AM
Re: HLS cookie support
One possible solution would be to manually fetch the m3u8 before you begin playback using roURLTransfer and extract the cookie from that response using GetResponseHeaders(). Once you have the cookie, you can assign its value to your roVideoScreen using the AddHeader() function.
ryaowe
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2011
10:28 AM
Re: HLS cookie support
Thanks for the quick reply. Unfortunately, that doesn't quite work for us, as the cookie value changes with each m3u8 refresh. There are other methods we could use to work around this, but they're more difficult to scale. And Roku is currently our only target platform that doesn't seem to support cookies.
dherbst
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011
12:25 PM
Re: HLS cookie support
I'll second this request - our streaming provider uses a cookie based approach to creating authorization tokens for HLS which we would like to use, but it looks like it cannot be used on Roku without proper cookie support.
Please let us know if you plan on implementing this sometime soon.
Please let us know if you plan on implementing this sometime soon.
bosborne
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2013
06:58 AM
Re: HLS cookie support
I also need this.
I noticed that we can call EnableCookies on roVideoScreen now. However, even when doing so, it still doesn't seem to set the cookies that were returned from the server. Any ideas?
I noticed that we can call EnableCookies on roVideoScreen now. However, even when doing so, it still doesn't seem to set the cookies that were returned from the server. Any ideas?