-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
duration Infinity on live streams #67
Comments
you can see my code here: /aronallen/video.js |
first, congrats for the videojs adaptation 👍 you can detect whether streams are live or VoD thanks to the following event : |
FYI, the Regarding live stream, you can detect it as @mangui points out, and forward it to video.js by overriding the duration() {
if (this.isLive) {
return Infinity;
}
return super();
} |
Was just noticing this myself in playing around with my own integration using a live stream. Is this a technical limitation with MSE which prevents you from reporting the duration as Infinity? Appears to be the same situation with dash.js. |
yes, this is a MSE limitation |
+1 |
@yonimor The |
Ran into this and noticed that dash.js uses duration: Number.MAX_SAFE_INTEGER for a live stream. Perhaps it would be nice to also implement that in hls.js? It's not Infinity, but close to it. |
Hi,
I have successfully bridged hls.js with video.js, and I found an issue.
Video.js expects
duration === Infinity
in order to render the propper controls for live streams.Is there some way to detect wether hls.js has identified a live stream?
The text was updated successfully, but these errors were encountered: