Home > hls.js > Fragment

Fragment class

Object representing parsed data from an HLS Segment. Found in LevelDetails.fragments.

Signature:

export declare class Fragment extends BaseSegment 

Extends: BaseSegment

Constructors

Constructor Modifiers Description
(constructor)(type, baseurl) Constructs a new instance of the Fragment class

Properties

Property Modifiers Type Description
bitrateTest boolean
cc number
data? Uint8Array (Optional)
decryptdata readonly LevelKey | null
deltaPTS? number (Optional)
duration number
encrypted readonly boolean
end readonly number
endDTS number
endList? boolean (Optional)
endProgramDateTime readonly number | null
endPTS? number (Optional)
initSegment Fragment | null
keyLoader Loader<KeyLoaderContext> | null
level number
levelkeys? { [key: string]: LevelKey; } (Optional)
loader Loader<FragmentLoaderContext> | null
maxStartPTS? number (Optional)
minEndPTS? number (Optional)
programDateTime number | null
rawProgramDateTime string | null
sn number | 'initSegment'
start number
startDTS number
startPTS? number (Optional)
stats LoadStats
tagList Array<string[]>
title string | null
type readonly PlaylistLevelType
urlId number

Methods

Method Modifiers Description
abortRequests()
clearElementaryStreamInfo()
setElementaryStreamInfo(type, startPTS, endPTS, startDTS, endDTS, partial)
setKeyFormat(keyFormat)