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

Fragment

Extends:

BaseSegment → Fragment

Constructor Summary

Public Constructor
public

Member Summary

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

loader: *

public
public
public
public
public
public
public

title: *

public

type: *

public
Private Members
private

Method Summary

Public Methods
public
public

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

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

setElementaryStreamInfo(type: ElementaryStreamTypes, startPTS: number, endPTS: number, startDTS: number, endDTS: number, partial: boolean)

Inherited Summary

From class BaseSegment
public get
public get
public get
public get
public set
public

baseurl: *

public

elementaryStreams: ElementaryStreams

private
private

_url: *

public

setByteRange(value: string, previous: BaseSegment)

Public Constructors

public constructor() source

Override:

BaseSegment#constructor

Public Members

public bitrateTest: boolean source

public cc: number source

public get decryptdata: * source

public duration: number source

public get encrypted: boolean source

public get end: number source

public get endProgramDateTime: * source

public initSegment: * source

public level: number source

public loader: * source

public programDateTime: * source

public rawProgramDateTime: * source

public sn: number source

public start: number source

public stats: LoadStats source

public tagList: Array source

public title: * source

public type: * source

public urlId: number source

Private Members

private _decryptdata: * source

Public Methods

public clearElementaryStreamInfo() source

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 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

public setElementaryStreamInfo(type: ElementaryStreamTypes, startPTS: number, endPTS: number, startDTS: number, endDTS: number, partial: boolean) source

Params:

NameTypeAttributeDescription
type ElementaryStreamTypes
startPTS number
endPTS number
startDTS number
endDTS number
partial boolean