-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
on_publish 3xx redirect using HLS doesn't change the name of the segments or directory name BUG #777
Comments
You can try passing token as query paramter, so user will stream to
and fragments generated should be named user-(n).ts. on_publish will get that query parameter, so you can still authorize users. |
You need to redirect to a different stream name in your Example: Streamer streams to:
Should return a redirect header:
HLS files and RTMP |
There is a bug with HLS, it doesn't create a new folder/file.ts with new redirect name. It works with rtmp, but not HLS. |
This is happening still, though @misiek08's solution worked brilliantly. I wouldn't use that in a production service, though! |
@techkid6 that's the easiest and production ready solution - just rotate tokens of you have paid service. Dynamic channel names works great too and the code to handle it is almost exactly the same. |
If you run a Livestream type site and allow users to stream by giving them a pubkey to stream you need a mechanism to protect the pubkey during playback or else anybody will be able to stream.
Example:
STREAMING USER: streams with below
rtmp://example.com/live pubkey: 382hki8
file names become 382hki8-(n).ts under /tmp/hls
but.. if I return a different stream name 98ke8i it still doesn't change the name of the file names
The text was updated successfully, but these errors were encountered: