HLS.JS Events
See original GitHub issueHey There- Is there a way to get a handle to the hlsjs events that get fired when playing a M3U8?
We are looking to get the #EXT-X-PROGRAM-DATE-TIME item from the playlist. And seem to be able to get them from the “FRAG_LOADED” event.
Having a hard time seeing where to get them from the-
const hlsInstance = this.player.getInternalPlayer();
thanks
MJD
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
HLS.js v1 API - GitHub
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE. ... attachMedia(video); // MEDIA_ATTACHED event is fired by hls...
Read more >src/events.js | hls.js
JavaScript HLS client using MediaSourceExtension. ... src/events.js ... attaching to media element - data: { media }; MEDIA_ATTACHING: 'hlsMediaAttaching', ...
Read more >Home - hls.js demo - Netlify
HLS.js is a JavaScript library that implements an HTTP Live Streaming client. It relies on HTML5 video and MediaSource Extensions for playback.
Read more >hls.js - how to subscribe to any event - Stack Overflow
I don't think there is a built in way to listen to all events, but you could always just subscribe to every event:...
Read more >Hls.js - Streamroot Documentation
This article details how to use CDN Mesh delivery with hls.js, the open-source and most widely used HLS player in ... attachMedia(video); hls.on(Hls.Events....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Note that you can now use
instead of
@CookPete- Worked like a champ!
Seeing the events flow.
BTW- In your sample app- If you do use this syntax-
the data return from HLS gives you the actual error from the library. That may help someone else.