bosborne
12 years agoVisitor
Setting Cookies from roVideoScreen?
So I noticed that roVideoScreen supports the ifHttpAgent, which allows you to call the function EnableCookies().
I'm trying to get a Cookie-based token authorization system working. It works where the initial request for a stream includes a secure Token. The response from the CDN server sets a couple of Cookie headers that must be re-sent back on each subsequent request (for sub-playlists, key files, and media files).
Is this not possible? I have called EnableCookies() on my roVideoScreen object. In the while event loop, I try printing out the Cookies but the result is always an empty array. This seems to be tricker than a normal roUrlTransfer object, where there is just one single request. I have Cookies working well with that. Since the roVideoScreen object is making several HTTP requests, I wonder if that is screwing things up?
I'm trying to get a Cookie-based token authorization system working. It works where the initial request for a stream includes a secure Token. The response from the CDN server sets a couple of Cookie headers that must be re-sent back on each subsequent request (for sub-playlists, key files, and media files).
Is this not possible? I have called EnableCookies() on my roVideoScreen object. In the while event loop, I try printing out the Cookies but the result is always an empty array. This seems to be tricker than a normal roUrlTransfer object, where there is just one single request. I have Cookies working well with that. Since the roVideoScreen object is making several HTTP requests, I wonder if that is screwing things up?