Home Reference Source

Function

Static Public Summary
public

DemuxerWorker(self: *)

public
public

adjustPts(sliding: *, details: *)

public

alignDiscontinuities(lastFrag: *, lastLevel: *, details: *)

public

appendFrame(track: *, data: *, offset: *, pts: *, frameIndex: *): *

public

clearCurrentCues(track: *)

public

enableLogs(debugConfig: *)

public

findDiscontinuousReferenceFrag(prevDetails: *, curDetails: *): *

public

findFirstFragWithCC(fragments: *, cc: *): *

public

findFragWithCC(fragments: *, CC: *): *

public

fixLineBreaks(input: *): *

public

getAudioConfig(observer: *, data: *, offset: *, audioCodec: *): {"config": *, "samplerate": *, "channelCount": *, "codec": *, "manifestCodec": *}

public

getFrameDuration(samplerate: *): *

public

getFullFrameLength(data: *, offset: *): *

public

getHeaderLength(data: *, offset: *): *

public

MediaSource helper

public

initTrackConfig(track: *, observer: *, data: *, offset: *, audioCodec: *)

public

isCodecSupportedInMp4(codec: *, type: *): *

public

isCodecType(codec: *, type: *): *

public

isHeader(data: *, offset: *): boolean

public

isHeaderPattern(data: *, offset: *): *

public
public

mergeDetails(oldDetails: *, newDetails: *)

public

newCue(track: *, startTime: *, endTime: *, captionScreen: *)

public

parseFrameHeader(data: *, offset: *, pts: *, frameIndex: *, frameDuration: *): *

public

probe(data: *, offset: *): boolean

public

removePadding(buffer: *): *

public

sendAddTrackEvent(track: *, videoEl: *)

public

shouldAlignOnDiscontinuities(lastFrag: *, lastLevel: *, details: *): *

public

updateFragPTSDTS(details: *, frag: *, startPTS: *, endPTS: *, startDTS: *, endDTS: *): *

public

updatePTS(fragments: *, fromIdx: *, toIdx: *)

Static Public

public DemuxerWorker(self: *) source

import DemuxerWorker from 'hls.js/src/demux/demuxer-worker.js'

Params:

NameTypeAttributeDescription
self *

public VTTParser() source

import VTTParser from 'hls.js/src/utils/vttparser.js'

public adjustPts(sliding: *, details: *) source

import {adjustPts} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
sliding *
details *

public alignDiscontinuities(lastFrag: *, lastLevel: *, details: *) source

import {alignDiscontinuities} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
lastFrag *
lastLevel *
details *

public appendFrame(track: *, data: *, offset: *, pts: *, frameIndex: *): * source

import {appendFrame} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
track *
data *
offset *
pts *
frameIndex *

Return:

*

public clearCurrentCues(track: *) source

import {clearCurrentCues} from 'hls.js/src/utils/texttrack-utils.js'

Params:

NameTypeAttributeDescription
track *

public enableLogs(debugConfig: *) source

import {enableLogs} from 'hls.js/src/utils/logger.js'

Params:

NameTypeAttributeDescription
debugConfig *

public findDiscontinuousReferenceFrag(prevDetails: *, curDetails: *): * source

import {findDiscontinuousReferenceFrag} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
prevDetails *
curDetails *

Return:

*

public findFirstFragWithCC(fragments: *, cc: *): * source

import {findFirstFragWithCC} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
fragments *
cc *

Return:

*

public findFragWithCC(fragments: *, CC: *): * source

import {findFragWithCC} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
fragments *
CC *

Return:

*

public fixLineBreaks(input: *): * source

import {fixLineBreaks} from 'hls.js/src/utils/vttparser.js'

Params:

NameTypeAttributeDescription
input *

Return:

*

public getAudioConfig(observer: *, data: *, offset: *, audioCodec: *): {"config": *, "samplerate": *, "channelCount": *, "codec": *, "manifestCodec": *} source

import {getAudioConfig} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
observer *
data *
offset *
audioCodec *

Return:

{"config": *, "samplerate": *, "channelCount": *, "codec": *, "manifestCodec": *}

public getFrameDuration(samplerate: *): * source

import {getFrameDuration} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
samplerate *

Return:

*

public getFullFrameLength(data: *, offset: *): * source

import {getFullFrameLength} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *

Return:

*

public getHeaderLength(data: *, offset: *): * source

import {getHeaderLength} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *

Return:

*

public getMediaSource(): * source

import {getMediaSource} from 'hls.js/src/helper/mediasource-helper.js'

MediaSource helper

Return:

*

public initTrackConfig(track: *, observer: *, data: *, offset: *, audioCodec: *) source

import {initTrackConfig} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
track *
observer *
data *
offset *
audioCodec *

public isCodecSupportedInMp4(codec: *, type: *): * source

import {isCodecSupportedInMp4} from 'hls.js/src/utils/codecs.js'

Params:

NameTypeAttributeDescription
codec *
type *

Return:

*

public isCodecType(codec: *, type: *): * source

import {isCodecType} from 'hls.js/src/utils/codecs.js'

Params:

NameTypeAttributeDescription
codec *
type *

Return:

*

public isHeader(data: *, offset: *): boolean source

import {isHeader} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *

Return:

boolean

public isHeaderPattern(data: *, offset: *): * source

import {isHeaderPattern} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *

Return:

*

public isSupported(): * source

import {isSupported} from 'hls.js/src/helper/is-supported.js'

Return:

*

public mergeDetails(oldDetails: *, newDetails: *) source

import {mergeDetails} from 'hls.js/src/helper/level-helper.js'

Params:

NameTypeAttributeDescription
oldDetails *
newDetails *

public newCue(track: *, startTime: *, endTime: *, captionScreen: *) source

import {newCue} from 'hls.js/src/utils/cues.js'

Params:

NameTypeAttributeDescription
track *
startTime *
endTime *
captionScreen *

public parseFrameHeader(data: *, offset: *, pts: *, frameIndex: *, frameDuration: *): * source

import {parseFrameHeader} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *
pts *
frameIndex *
frameDuration *

Return:

*

public probe(data: *, offset: *): boolean source

import {probe} from 'hls.js/src/demux/adts.js'

Params:

NameTypeAttributeDescription
data *
offset *

Return:

boolean

public removePadding(buffer: *): * source

import {removePadding} from 'hls.js/src/crypt/aes-decryptor.js'

Params:

NameTypeAttributeDescription
buffer *

Return:

*

public sendAddTrackEvent(track: *, videoEl: *) source

import {sendAddTrackEvent} from 'hls.js/src/utils/texttrack-utils.js'

Params:

NameTypeAttributeDescription
track *
videoEl *

public shouldAlignOnDiscontinuities(lastFrag: *, lastLevel: *, details: *): * source

import {shouldAlignOnDiscontinuities} from 'hls.js/src/utils/discontinuities.js'

Params:

NameTypeAttributeDescription
lastFrag *
lastLevel *
details *

Return:

*

public updateFragPTSDTS(details: *, frag: *, startPTS: *, endPTS: *, startDTS: *, endDTS: *): * source

import {updateFragPTSDTS} from 'hls.js/src/helper/level-helper.js'

Params:

NameTypeAttributeDescription
details *
frag *
startPTS *
endPTS *
startDTS *
endDTS *

Return:

*

public updatePTS(fragments: *, fromIdx: *, toIdx: *) source

import {updatePTS} from 'hls.js/src/helper/level-helper.js'

Params:

NameTypeAttributeDescription
fragments *
fromIdx *
toIdx *