Home > hls.js > BaseStreamController

BaseStreamController class

Signature:

export default class BaseStreamController extends TaskLoop implements NetworkComponentAPI 

Extends: TaskLoop

Implements: NetworkComponentAPI

Constructors

Constructor Modifiers Description
(constructor)(hls, fragmentTracker, keyLoader, logPrefix) Constructs a new instance of the BaseStreamController class

Properties

Property Modifiers Type Description
_state protected string
bitrateTest protected boolean
config protected HlsConfig
decrypter protected Decrypter
fragCurrent protected Fragment | null
fragmentLoader protected FragmentLoader
fragmentTracker protected FragmentTracker
fragPrevious protected Fragment | null
hls protected Hls
initPTS protected RationalTimestamp[]
keyLoader protected KeyLoader
lastCurrentTime protected number
levelLastLoaded protected number | null
levels protected Array<Level> | null
loadedmetadata protected boolean
log protected (msg: any) => void
media protected HTMLMediaElement | null
mediaBuffer protected Bufferable | null
nextLoadPosition protected number
onvended protected EventListener | null
onvseeking protected EventListener | null
retryDate protected number
startFragRequested protected boolean
startPosition protected number
startTimeOffset protected number | null
state string
transmuxer protected TransmuxerInterface | null
warn protected (msg: any) => void

Methods

Method Modifiers Description
_doFragLoad(frag, level, targetBufferTime, progressCallback) protected
_handleFragmentLoadComplete(fragLoadedEndData) protected
_handleFragmentLoadProgress(frag) protected
_handleTransmuxerFlush(chunkMeta) protected
_loadInitSegment(frag, level) protected
_streamEnded(bufferInfo, levelDetails) protected
afterBufferFlushed(media, bufferType, playlistType) protected
alignPlaylists(details, previousDetails) protected
bufferFragmentData(data, frag, part, chunkMeta) protected
doTick() protected
flushBufferGap(frag) protected
flushMainBuffer(startOffset, endOffset, type) protected
fragBufferedComplete(frag, part) protected
fragContextChanged(frag) protected
getCurrentContext(chunkMeta) protected
getFragmentAtPosition(bufferEnd, end, levelDetails) protected
getFwdBufferInfo(bufferable, type) protected
getInitialLiveFragment(levelDetails, fragments) protected
getLevelDetails() protected
getLoadPosition() protected
getMaxBufferLength(levelBitrate) protected
getNextFragment(pos, levelDetails) protected
getNextPart(partList, frag, targetBufferTime)
loadFragment(frag, level, targetBufferTime) protected
mapToInitFragWhenRequired(frag)
onFragmentOrKeyLoadError(filterType, data) protected
onHandlerDestroyed() protected
onHandlerDestroying() protected
onManifestLoaded(event, data) protected
onMediaAttached(event, data) protected
onMediaDetaching() protected
onMediaEnded() protected
onMediaSeeking() protected
onTickEnd() protected
recoverWorkerError(data) protected
reduceMaxBufferLength(threshold) protected
resetFragmentErrors(filterType) protected
resetFragmentLoading(frag) protected
resetLoadingState() protected
resetStartWhenNotLoaded(level) protected
resetTransmuxer() protected
seekToStartPos() protected
setStartPosition(details, sliding) protected
startLoad(startPosition)
stopLoad()
synchronizeToLiveEdge(levelDetails) protected
waitForCdnTuneIn(details) protected