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

M3U8Parser

Static Method Summary

Static Public Methods
public static
public static

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

public static

parseLevelPlaylist(string: string, baseurl: string, id: number, type: PlaylistLevelType, levelUrlId: number): *

public static

parseMasterPlaylist(string: string, baseurl: string): {"levels": *, "sessionData": *}

public static

parseMasterPlaylistMedia(string: string, baseurl: string, type: MediaPlaylistType, audioGroups: Array): Array

public static

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

Static Public Methods

public static convertAVC1ToAVCOTI(codec: undefined): * source

Params:

NameTypeAttributeDescription
codec undefined

Return:

*

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

Params:

NameTypeAttributeDescription
groups Array
mediaGroupId string

Return:

*

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

Params:

NameTypeAttributeDescription
string string
baseurl string
id number
type PlaylistLevelType
levelUrlId number

Return:

*

public static parseMasterPlaylist(string: string, baseurl: string): {"levels": *, "sessionData": *} source

Params:

NameTypeAttributeDescription
string string
baseurl string

Return:

{"levels": *, "sessionData": *}

public static parseMasterPlaylistMedia(string: string, baseurl: string, type: MediaPlaylistType, audioGroups: Array): Array source

Params:

NameTypeAttributeDescription
string string
baseurl string
type MediaPlaylistType
audioGroups Array

Return:

Array

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

Params:

NameTypeAttributeDescription
url undefined
baseUrl undefined

Return:

*