vime-js / vime

Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
https://vimejs.com
MIT License
2.75k stars 154 forks source link

Vime-hls #117

Open AlekseyPn opened 3 years ago

AlekseyPn commented 3 years ago

Hi, why if hls don't support natively and player use fallback(hls.js), live-indicator not showing, and props isLive equal false? I use @vime/vue.

phillipseamore commented 3 years ago

Since Vime does isLive by checking if the video element duration==infinity the easy fix would be changing hls.js config so it sets duration to infinity: https://github.com/video-dev/hls.js/blob/c19056ba0c3e521edfd909a27406b7276c8cbfbf/docs/API.md#livedurationinfinity

AlekseyPn commented 3 years ago

Since Vime does isLive by checking if the video element duration==infinity the easy fix would be changing hls.js config so it sets duration to infinity: https://github.com/video-dev/hls.js/blob/c19056ba0c3e521edfd909a27406b7276c8cbfbf/docs/API.md#livedurationinfinity

Thanks, i didn't find it in hls.js docs, but for example videojs define live or not live automatically, it important for me, because we want use vime in production, and replace videojs

mihar-22 commented 3 years ago

Hey @AlekseyPn I'll get onto this ASAP, busy this weekend but on my Monday I'll get to it. Apologies on the delay it's just I've been busy with getting version 5 out.

marksteven commented 1 year ago

Having same issue with HLS