Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS manifest redirects are currently not followed before passing the URL to Chromecast #47

Open
renatofrota opened this issue Jun 22, 2021 · 0 comments

Comments

@renatofrota
Copy link

renatofrota commented Jun 22, 2021

Hello, I am currently using this (awesome) plugin with HLS protected streams and facing an issue.

The source URL set in Clappr options authenticate the user, based in several factors, and redirects to a new HLS manifest URL with a token attached (to the query string) - which finally reponds with the chunklist - and Clappr perform new requests every few seconds to this final URL (with the token).

However, when I click the Chromecast icon, the initial URL is sent to Chromecast (without the token) and it pings that URL every few seconds, following the redirect to get the chunklist and obtaining a new token every time.

I am not sure it is an error by this plugin or in Chromecast's procedures internally. It could do as Clappr (Hls.js) does and check for manifest updates on the URL it was forwarded to (with the token). But certainly this problem could be prevented by this plugin, passing to the Chromecast device the URL with the token (where the manifest redirects to).

Anyway, passing the final URL of the manifest (with the token) would be even more useful since "environment" information available to Clappr player and this plugin (like the the Origin header, HTTP Referer header, the cookies passed along the request to the initial manifest URL, etc) are not available otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant