toString |
abrBandWidthFactor | Scale factor to be applied against measured bandwidth average, to determine whether we can stay on current or lower quality level. Default: 0.95 |
abrBandWidthUpFactor | Scale factor to be applied against measured bandwidth average, to determine whether we can switch up to a higher quality level. Default: 0.7 |
abrEwmaDefaultEstimate | Default bandwidth estimate in bits/s prior to collecting fragment bandwidth samples. parameter should be a float. Default: 500000 |
abrEwmaFastLive | Fast bitrate Exponential moving average half-life, used to compute average bitrate for Live streams. Default: 3.0 |
abrEwmaFastVoD | Fast bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams. Default: 3.0 |
abrEwmaSlowLive | Slow bitrate Exponential moving average half-life, used to compute average bitrate for Live streams. Default: 3.0 |
abrEwmaSlowVoD | Slow bitrate Exponential moving average half-life, used to compute average bitrate for VoD streams. Default: 9.0 |
abrMaxWithRealBitrate | Max bitrate used in ABR by avg measured bitrate i.e. if bitrate signaled in variant manifest for a given level is 2Mb/s but average bitrate measured on this level is 2.5Mb/s, then if config value is set to true, ABR will use 2.5 Mb/s for this quality level. Default: false |
appendErrorMaxRetry | Max number of sourceBuffer.appendBuffer() retry upon error. Such error could happen in loop with UHD streams, when internal buffer is full. Default: 3 |
autoStartLoad | If set to true, first fragments will be loaded automatically. Default: true |
capLevelOnFPSDrop | When set to true, if the number of dropped frames over the period fpsDroppedMonitoringPeriod exceeds the ratio set by fpsDroppedMonitoringThreshold, then the quality level is dropped and capped at this lower level. Default: false |
capLevelToPlayerSize | If set to true, the adaptive algorithm with limit levels usable in auto-quality by the HTML video element dimensions (width and height). If dimensions between multiple levels are equal, the cap is chosen as the level with the greatest bandwidth. Default: false |
captionsTextTrack1Label | Label for the text track generated for CEA-708 captions track 1. Default: English |
captionsTextTrack1LanguageCode | RFC 3066 language code for the text track generated for CEA-708 captions track 1. Default: en |
captionsTextTrack2Label | Label for the text track generated for CEA-708 captions track 2. Default: Spanish |
captionsTextTrack2LanguageCode | RFC 3066 language code for the text track generated for CEA-708 captions track 2. Default: es |
controls | Set to true to display video controls. Default: true |
debug | Setting to true will turn on debug logs on JS console. Default: false |
defaultAudioCodec | Audio Codec hint. Default: undefined |
emeEnabled | Whether to configure Enable Encrypted Media Extension for the stream. Default: false |
enableCEA708Captions | Whether or not to enable CEA-708 captions. Default: true |
enableSoftwareAES | Enable to use JavaScript version AES decryption for fallback of WebCrypto API. Default: true |
enableWebVTT | Whether or not to enable WebVTT captions on HLS. Default: true |
enableWorker | Enable WebWorker (if available on browser) for TS demuxing/MP4 remuxing, to improve performance and avoid lag/frame drops. Default: true |
forceKeyFrameOnDiscontinuity | Whether or not to force having a key frame in the first AVC sample after a discontinuity. Default: true |
fpsDroppedMonitoringPeriod | The allowed frames dropped monitoring period is milliseconds. Default: 5000 ms |
fpsDroppedMonitoringThreshold | The allowed frames dropped threshold. Default: 0.2 |
fragLoadingMaxRetry | Max number of load retries. Default: 6 |
fragLoadingMaxRetryTimeout | Maximum frag/manifest/key retry timeout (in milliseconds) in case I/O errors are met. Default: 64000 ms |
fragLoadingRetryDelay | Initial delay between XMLHttpRequest error and first load retry (in ms). Default: 1000 ms |
fragLoadingTimeOut | URL Loader timeout. Default: 20000 ms |
highBufferWatchdogPeriod | Recover playback watchdog period. Default: 3s |
initialLiveManifestSize | Number of segments needed to start a playback of Live stream. Default: 1 |
levelLoadingMaxRetry | Max number of load retries. Default: 4 |
levelLoadingMaxRetryTimeout | Maximum frag/manifest/key retry timeout (in milliseconds) in case I/O errors are met. Default: 64000 ms |
levelLoadingRetryDelay | Initial delay between XMLHttpRequest error and first load retry (in ms). Default: 1000 ms |
levelLoadingTimeOut | URL Loader timeout. Default: 10000 ms |
liveMaxLatencyDurationCount | Maximum delay allowed from edge of live. Default: Infinity (-1) |
liveSyncDurationCount | Edge of live delay, expressed in multiple of EXT-X-TARGETDURATION. Default: 3 |
lowBufferWatchdogPeriod | Recover playback watchdog period. Default: 0.5 sec |
manifestLoadingMaxRetry | Max number of load retries. Default: 1 |
manifestLoadingMaxRetryTimeout | Maximum frag/manifest/key retry timeout (in milliseconds) in case I/O errors are met. Default: 64000 ms |
manifestLoadingRetryDelay | Initial delay between XMLHttpRequest error and first load retry (in ms). Default: 1000 ms |
manifestLoadingTimeOut | URL Loader timeout. Default: 10000 ms |
maxAudioFramesDrift | Audio frames drift so that the distance between consecutive audio frame remains constant. Default: 1 |
maxBufferHole | Maximum inter-fragment buffer hole tolerance that hls.js can cope with when searching for the next fragment to load. Default: 0.5 seconds |
maxBufferLength | Maximum buffer length in seconds. Default: 30 seconds |
maxBufferSize | 'Minimum' maximum buffer size in bytes. Default: 60 MB |
maxFragLookUpTolerance | This tolerance factor is used during fragment lookup. Default: 0.25 sec |
maxLoadingDelay | Max video loading delay used in automatic start level selection. Default: 4 sec |
maxMaxBufferLength | Maximum buffer length in seconds. Default: 600 sec |
maxStarvationDelay | ABR algorithm will always try to choose a quality level that should avoid rebuffering. Default: 4 sec |
minAutoBitrate | Return the capping/min bandwidth value that could be used by automatic level selection algorithm. Default: 0 |
muted | Set to true to mute video. Default: false |
nudgeMaxRetry | Max nb of nudge retries before hls.js raise a fatal BUFFER_STALLED_ERROR. Default: 3 |
nudgeOffset | In case playback continues to stall after first playhead nudging, currentTime will be nudged evenmore following nudgeOffset to try to restore playback. Default: 0.1 sec |
startFragPrefetch | Start prefetching start fragment although media not attached yet. Default: false |
startLevel | When set, use this level as the default hls.startLevel. Default: undefined |
startPosition | If set to -1, playback will start from initialTime=0 for VoD. Default: -1 |
stretchShortVideoTrack | If a segment's video track is shorter than its audio track by > maxBufferHole, extend the final video frame's duration to match the audio track's duration. Default: false |
testBandwidth | Load the first fragment of the lowest level to establish a bandwidth estimate before selecting the first auto-level. Default: true |
url | The HLS.js download URL to use. Default: https://www.mobilefx.com/hls.js |
widevineLicenseUrl | The Widevine certificate URL. Default: undefined |