pranav-prakash / RokuCast

Cast videos from chrome to roku
180 stars 39 forks source link

403 Forbidden while fetching file from server #18

Closed Jhanbhaia closed 7 years ago

Jhanbhaia commented 7 years ago

Hi, every time I try casting a video I get the error in the header above. Tried uninstalling/reinstalling app and extension.

pranav-prakash commented 7 years ago

What video are you trying to cast?

Jhanbhaia commented 7 years ago

Any video from Youtube or this site: https://www.arconaitv.me/koth/

pranav-prakash commented 7 years ago

See: https://github.com/pranav-prakash/RokuCast/issues/14 for the YouTube issue.

I'm still investigating into the arconaitv issue. For some reason when roku requests the m3u8 file it gets a 403 forbidden error, while fetching the file from desktop works fine. Perhaps the server is blocking based on user-agent or headers or something. I'll dig a bit deeper and see.

pranav-prakash commented 7 years ago

Ok confirmed: the server filters requests based on the user agent. If the user agent header has the word "roku" in it, we get back a 403. This is relatively simple to fix, but you'll have to use the branch that has a separate receiver app (the playOnRoku branch will not work).

I've currently added the fix to the dev branch. Go to the master branch and follow the instructions there to install it.

I'll merge it into the production branch later on.