Home Reference Source
import Fragment from 'hls.js/src/loader/fragment.js'
public class | source

Fragment

Static Member Summary

Static Public Members
public static get

ElementaryStreamTypes: {"AUDIO": string, "VIDEO": string}

type property for this._elementaryStreams

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public get
public get
public get
public get
public

tagList: *[]

public get

url: *

public set

url

Private Members
private
private
private

_elementaryStreams: {"undefined": *}

private
private

_url: *

Method Summary

Public Methods
public

addElementaryStream(type: ElementaryStreamType)

public

Utility method for parseLevelPlaylist to create an initialization vector for a given segment

public

fragmentDecryptdataFromLevelkey(levelkey: *, segmentNumber: *): *

Utility method for parseLevelPlaylist to get a fragment's decryption data from the currently parsed encryption key data

public

hasElementaryStream(type: ElementaryStreamType): *

Static Public Members

public static get ElementaryStreamTypes: {"AUDIO": string, "VIDEO": string} source

type property for this._elementaryStreams

Public Constructors

public constructor() source

Public Members

public get byteRange: * source

public get byteRangeEndOffset: * source

public get byteRangeStartOffset: number source

public get decryptdata: * source

public get programDateTime: * source

public tagList: *[] source

public get url: * source

public set url source

Private Members

private _byteRange: * source

private _decryptdata: * source

private _elementaryStreams: {"undefined": *} source

private _programDateTime: * source

private _url: * source

Public Methods

public addElementaryStream(type: ElementaryStreamType) source

Params:

NameTypeAttributeDescription
type ElementaryStreamType

public createInitializationVector(segmentNumber: *): Uint8Array source

Utility method for parseLevelPlaylist to create an initialization vector for a given segment

Params:

NameTypeAttributeDescription
segmentNumber *

Return:

Uint8Array

public fragmentDecryptdataFromLevelkey(levelkey: *, segmentNumber: *): * source

Utility method for parseLevelPlaylist to get a fragment's decryption data from the currently parsed encryption key data

Params:

NameTypeAttributeDescription
levelkey *

a playlist's encryption info

segmentNumber *

the fragment's segment number

Return:

*

an object to be applied as a fragment's decryptdata

public hasElementaryStream(type: ElementaryStreamType): * source

Params:

NameTypeAttributeDescription
type ElementaryStreamType

Return:

*