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

Support for EXT-X-DEFINE in m3u8 files #1506

Open
mjrox opened this issue Apr 24, 2024 · 1 comment
Open

Support for EXT-X-DEFINE in m3u8 files #1506

mjrox opened this issue Apr 24, 2024 · 1 comment

Comments

@mjrox
Copy link

mjrox commented Apr 24, 2024

I want to add authentication to my HLS videos, however, I am struggling to append a token to the files referenced in my m3u8 files.

I tried the beforeRequest function on the vhs object, however, that does not work in iOS - presumably because I has its own implementation of HLS.

Apple has its own solution in the form of variable substitution, for example:

#EXTM3U
#EXT-X-VERSION:11

#EXT-X-DEFINE:QUERYPARAM="token"
#EXT-X-STREAM-INF:BANDWIDTH=400000,RESOLUTION=640x360
360.m3u8{$token}

#EXT-X-DEFINE:QUERYPARAM="token"
#EXT-X-STREAM-INF:BANDWIDTH=1000000,RESOLUTION=960x540
540.m3u8{$token}

Will this be supported in a future release? I couldn't get it to work using videojs 7.10.

If not - does anybody have any pointers on how to create the m3u8 file on-the-fly - so that the tokens can be appended on each page request?

Copy link

welcome bot commented Apr 24, 2024

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@videojs videojs deleted a comment from Skpriens May 23, 2024
@videojs videojs deleted a comment from Skpriens May 23, 2024
@videojs videojs deleted a comment from Skpriens May 23, 2024
@videojs videojs deleted a comment from Skpriens May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants