chrisdp / Roku-Charles-example

This is a simple app showing how you can view the network traffic in your application.
MIT License
25 stars 7 forks source link

Trouble playing tokenized streams when connected to Charles #1

Open Ajith22 opened 4 years ago

Ajith22 commented 4 years ago

Hello,

We have Live Streams which are protected using tokens and cookies. When we pass on the stream URL to the Roku video player, it fetches the Master Manifest file along with some cookies in the header like Set-Cookie:__Lm_hashsecret=cf=1599761069&p=88&h=33b834c093afe8948f334fc40e6949ee; Path=/out/u/espn/; SameSite=None; HttpOnly; Secure

Once the player receives the Master manifest it starts requesting the variant playlist manifest plus the segments(.ts) and keys by the sending the above cookie attached to the individual requests made. This is done in Brightscript by setting the EnableCookies() method of the httpAgent in the video node. The video plays fine.

But when the App is connected to the Charles Proxy and played, I don't find the Cookie values being passed in the variant playlist request urls and so get a 403 Forbidden error. Is there a way to pass these cookie values for the subsequent calls? Please suggest

Thanks

chrisdp commented 4 years ago

Just wanted to let you know that I'm still looking into this as time  allows.