videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.53k stars 425 forks source link

How to get the VOD/live property of the current playing stream from player? #1503

Closed snowinszu closed 5 months ago

snowinszu commented 7 months ago

How to get the VOD/live property of the current playing stream from player?

mister-ben commented 5 months ago

If live, player.duration() returns Infinity.

If using the LiveTracker there is also player.liveTracker.isLive().

snowinszu commented 5 months ago

Thanks.