Comments (8)
@yonimor The level
object emitted from LEVEL_LOADED
has a property called live
, which tells you whether the stream is live or not.
from hls.js.
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.
from hls.js.
you can see my code here: /aronallen/video.js
from hls.js.
first, congrats for the videojs adaptation 👍
please note that another port has been done , as a standard videojs plugin, see https://github.com/benjipott/videojs-hlsjs
you can detect whether streams are live or VoD thanks to the following event :
Hls.Events.LEVEL_LOADED
, then data.details.live (true/false)
from hls.js.
FYI, the videojs-hlsjs
integration is somewhat lacking and I consider it mostly a proof of concept at this point.
Regarding live stream, you can detect it as @mangui points out, and forward it to video.js by overriding the duration
method. Eg. something like:
duration() {
if (this.isLive) {
return Infinity;
}
return super();
}
from hls.js.
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.
from hls.js.
yes, this is a MSE limitation
from hls.js.
+1
from hls.js.
Related Issues (20)
- Fill gaps with empty frames or last frame HOT 2
- Question about removing remuxEmptyAudio HOT 3
- Repeated QuotaExceededError HOT 2
- Same fragments loaded multiple times HOT 2
- Stop Loading Video Stream HOT 2
- A stream plays normally on the hls.js demo page, but in my own project, it stops playing after approximately 20 seconds HOT 3
- when multiple audio tracks are there, HLS quality option not trigerring HOT 1
- media key failed to execute HOT 1
- Modify AES-128 KEY URI response HOT 6
- Video crashing on Tizen 2023 TV's HOT 15
- NS_BINDING_ABORTED in firefox with fetching .m3u8 stream HOT 1
- Hvc codec can't be played on Firefox HOT 1
- #EXT-X-KEY URI value parsing assumes b64 PRO value for PlayReady, causing errors when those assumptions are not met HOT 4
- Control bar behaviour with multiple players and mouse out
- Freezing on seeking and black screen on stream Load. HOT 4
- Display ID3 Tag content in console with Hls.js Demo ? HOT 2
- How Could I start playing video from second segment in first playlist calls? HOT 6
- ID3 cuechange events not firing for metadata cues with a duration less than MIN_CUE_DURATION HOT 7
- Question with loading a different m3u8 source will make the 608 caption button disappear HOT 2
- Support TypeScript `Node16`/`NodeNext` module resolution HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hls.js.