videojs / m3u8-parser

An m3u8 parser.
Other
473 stars 98 forks source link

Get M3U8 manifest infomation by videojs? #103

Closed StriveTeam closed 4 years ago

StriveTeam commented 4 years ago

how to get M3U8 manifest infomation by videojs?

gkatsev commented 4 years ago

Some of this information is exposed via our VHS project but won't be available when native HLS playback is used. What information are you looking for?

chandrakanthd commented 4 years ago

if we need to get the EXT-X-PROGRAM-DATE-TIME tag values, how to access it? I've looked at m3u8 parser, but we need to provide a manifest for it to parse.

Is there any API from videojs which provides the manifest data of the feed/each segment, when we provide hls url to the player src? Would really appreciate any help on this.

gkatsev commented 4 years ago

date time info is available on the segments object, for example:

player.tech().hls.playlists.media().segments[0].dateTimeString;
player.tech().hls.playlists.media().segments[1].dateTimeObject;
vanminhquangtri commented 1 year ago

Hi, I want to get this manifest information about the audio. I know I can get the audioTrack for the player but the order of audio is random in Safari after every page reload. So I want to get the audio manifest which is not changed. Do you have any api/methods for this. Thank you.