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

Fragment

Constructor Summary

Public Constructor
public

Member Summary

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

title: *

public get

url: *

public set
public
Private Members
private
private
private
private

_url: *

Method Summary

Public Methods
public

addElementaryStream(type: ElementaryStreamTypes)

public

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

public

hasElementaryStream(type: ElementaryStreamTypes): *

public

setByteRange(value: string, previousFrag: Fragment)

public

setDecryptDataFromLevelKey(levelkey: LevelKey, segmentNumber: number): LevelKey

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

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 deltaPTS: number source

public get encrypted: * source

public get endProgramDateTime: * source

public level: number source

public programDateTime: * source

public rawProgramDateTime: * source

public sn: number source

public tagList: Array source

public title: * source

public get url: * source

public set url: undefined source

public urlId: number source

Private Members

private _byteRange: * source

private _decryptdata: * source

private _elementaryStreams: Record source

private _url: * source

Public Methods

public addElementaryStream(type: ElementaryStreamTypes) source

Params:

NameTypeAttributeDescription
type ElementaryStreamTypes

public createInitializationVector(segmentNumber: number): Uint8Array source

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

Params:

NameTypeAttributeDescription
segmentNumber number

Return:

Uint8Array

public hasElementaryStream(type: ElementaryStreamTypes): * source

Params:

NameTypeAttributeDescription
type ElementaryStreamTypes

Return:

*

public setByteRange(value: string, previousFrag: Fragment) source

Params:

NameTypeAttributeDescription
value string
previousFrag Fragment

public setDecryptDataFromLevelKey(levelkey: LevelKey, segmentNumber: number): LevelKey source

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

Params:

NameTypeAttributeDescription
levelkey LevelKey
segmentNumber number

Return:

LevelKey