Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I can't do that the video node uses the cookies coming from an mpd manifest header response

Hey Roku Community!

 

As I say in the title, I can't do that the video node uses the cookies coming from an mpd manifest header response. I'm already calling the video node method `enableCookies()` in different moments, and that's not working.

Based on some findings, I was able to follow a flow where:

1. do a GET request to the manifest URL

2. get response header to read `set-cookies` value

3. build cookie to be set by using addCookies() method

And doing this flow, something weird is happening. it doesn't work the first time I try to start playback (calling video.control = "start"), and the cookies that were added get cleared. But if I set cookies again (step 3) and start playback (video.control = "start"), it works!

in my opinion, it must be enough to get cookies added in the video node's HTTP agent with just previously call enableCookies(). Is it possible that there are something else that I should try?

Thanks!

0 Kudos