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

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

public

setKeyFormat(keyFormat: KeySystemFormats)

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 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 endList: boolean source

public endPTS: number source

public get endProgramDateTime: * source

public initSegment: * source

public keyLoader: * source

public level: number source

public levelkeys: * 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 abortRequests() source

public clearElementaryStreamInfo() source

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

public setKeyFormat(keyFormat: KeySystemFormats) source

Params:

NameTypeAttributeDescription
keyFormat KeySystemFormats