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

loader: *

public
public
public
public
public

sn: *

public
public
public
public
public
public

title: *

public

type: PlaylistLevelType

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
public

elementaryStreams: ElementaryStreams

public
private
private

_url: *

public

setByteRange(value: string, previous: BaseSegment)

Public Constructors

public constructor() source

Override:

BaseSegment#constructor

Public Members

public appendedPTS: number source

public bitrateTest: boolean source

public cc: number source

public data: Uint8Array source

public get decryptdata: * source

public deltaPTS: number source

public duration: number source

public get encrypted: boolean source

public get end: number source

public endDTS: number source

public endPTS: number source

public get endProgramDateTime: * source

public initSegment: * source

public level: number source

public levelkey: LevelKey source

public loader: * source

public maxStartPTS: number source

public minEndPTS: number source

public programDateTime: * source

public rawProgramDateTime: * source

public sn: * source

public start: number source

public startDTS: number source

public startPTS: number source

public stats: LoadStats source

public tagList: Array source

public title: * source

public type: PlaylistLevelType 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