ReferenceText tracks
hlsMetadataTrack
A track definition for the ID3 and EXT-X-DATERANGE metadata hls.js publishes
Import
hlsMetadataTrack is a track definition for { kind: 'metadata', label: 'id3' }, the track hls.js publishes timed metadata on. Its cues are typed as HlsMetadataCue. The text cues feature reads the track like any other metadata track.
hls.js plays streams in HlsJsVideo and the media built on it, such as MuxVideo, when they play through Media Source Extensions. Where the browser plays HLS natively, as Safari does, in-band metadata arrives as DataCues on the browser’s own metadata tracks instead; read those with a { kind: 'metadata' } filter.
Cues
Each cue carries one ID3 frame or one EXT-X-DATERANGE attribute. Its type tells which, and narrows value:
A date range’s cues span the range, from its start to its end.