Is there a way to know the segment information of the video currently being played in hls live? #5064
-
What do you want to do with Hls.js?Hello this is Steve. 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. Thank you. What have you tried so far?No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The This event includes all fragment details. I would recommend using DATERANGE tags in your playlist for timed metadata events. DATERANGE metadata is added to a metadata TextTrack which fires standard 'cue' events. |
Beta Was this translation helpful? Give feedback.
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-eventsThis 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…