Home Reference Source
import M3U8Parser from 'hls.js/src/loader/m3u8-parser.js'
public class | source

M3U8Parser

Static Method Summary

Static Public Methods
public static

convertAVC1ToAVCOTI(codec: *): *

public static

findGroup(groups: *, mediaGroupId: *): *

public static

parseLevelPlaylist(string: *, baseurl: *, id: *, type: *): *

public static

parseMasterPlaylist(string: *, baseurl: *): *

public static

parseMasterPlaylistMedia(string: *, baseurl: *, type: *, audioGroups: *[]): *

public static

resolve(url: *, baseUrl: *): *

Static Public Methods

public static convertAVC1ToAVCOTI(codec: *): * source

Params:

NameTypeAttributeDescription
codec *

Return:

*

public static findGroup(groups: *, mediaGroupId: *): * source

Params:

NameTypeAttributeDescription
groups *
mediaGroupId *

Return:

*

public static parseLevelPlaylist(string: *, baseurl: *, id: *, type: *): * source

Params:

NameTypeAttributeDescription
string *
baseurl *
id *
type *

Return:

*

public static parseMasterPlaylist(string: *, baseurl: *): * source

Params:

NameTypeAttributeDescription
string *
baseurl *

Return:

*

public static parseMasterPlaylistMedia(string: *, baseurl: *, type: *, audioGroups: *[]): * source

Params:

NameTypeAttributeDescription
string *
baseurl *
type *
audioGroups *[]
  • optional
  • default: []

Return:

*

public static resolve(url: *, baseUrl: *): * source

Params:

NameTypeAttributeDescription
url *
baseUrl *

Return:

*