Skip to content

Is there a way to know the segment information of the video currently being played in hls live? #5064

Answered by robwalch
dnxodl1001 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to know the segment or fragment information of the video currently being played in hls live?

Also, I would really appreciate it if you could tell me if I could catch the event of cue-out, cue-in, or discontinuity of the currently playing video.

The FRAG_CHANGED event fires when playback enters the timerange of a segment in the main playlist https://github.com/video-dev/hls.js/blob/master/docs/API.md#runtime-events

This event includes all fragment details. cc is the discontinuity sequence number. tagList includes playlist tags present in the playlist preceding the segment EXT-X-INF tag.

I would recommend using DATERANGE tags in your playlist for timed metadata events. DA…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by itsjamie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #5055 on November 27, 2022 23:08.