IsaacSchemm / casthelper.exe

A small WinForms (.NET) app for sending video URLs to Roku and Apple TV devices
MIT License
5 stars 1 forks source link

Headers for Roku support #4

Open PodTT opened 3 years ago

PodTT commented 3 years ago

Does Cast Helper support headers for URLs and in what format should they be? Thanks! Love the app btw.

IsaacSchemm commented 3 years ago

The current version sends this Accept request header with each request:

Accept: application/vnd.apple.mpegurl,video/*,audio/*

A web server could, when seeing a header like this, decide to redirect Cast Helper to the video or audio file's URL (which it will then send to the Roku) instead of sending an HTML web page.

IIRC, the Roku itself sends something like:

Accept: */*

while a real web browser will send something that includes text/html, like:

Accept: text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8

I don't have any other headers supported at the moment, but let me know if you'd like to see something added. I might add it to https://github.com/isaacSchemm/RokuRemote as well if I think it'll be useful there.

rightthumb commented 2 years ago

just purchased this from from windows app store (curiously). didn't realize it was on GitHub. there are no screenshots. can you post uri examples.

IsaacSchemm commented 2 years ago

What's the name of the app in the app store?