Advertisement
dragonbane

stable hls config

Oct 29th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var hlsConfig_maxStable = {
  2.         autoStartLoad: true,
  3.         startPosition: -1, //start at the beginning (takes liveSyncDurationCount into account)
  4.         capLevelToPlayerSize: false,
  5.         debug: false,
  6.         initialLiveManifestSize: 1, //start stream as soon as a playlist is found with at least 1 package
  7.         maxBufferLength: 40, //will attempt to buffer at least 40 seconds / 5 packages in advance to avoid stream buffering (default 3)
  8.         maxMaxBufferLength: 60, //will never buffer more than 60 seconds / 45 packages max (default 90)
  9.         maxBufferSize: 60 * 1000 * 1000, //60 MB max buffer pro stream, 1080p60 twitch stream takes roughly 3.12 MB in 4 seconds (enough for ~40 seconds) (default 60)
  10.         maxBufferHole: 0.5,
  11.         maxLoadingDelay: 5, //attempt to load the player as quickly as possible even with lower quality at first if neccesary (default 3)
  12.         lowBufferWatchdogPeriod: 0.5,
  13.         highBufferWatchdogPeriod: 3,
  14.         nudgeOffset: 0.1,
  15.         maxFragLookUpTolerance: 0.2,
  16.         liveSyncDurationCount: undefined,
  17.         liveMaxLatencyDurationCount: undefined,
  18.         liveSyncDuration: 20, //buffer 20 seconds before starting the stream, less buffering risk, higher delay
  19.         liveMaxLatencyDuration: 26, //flush the buffer and jump back to the live point if latency exceeds 26 seconds
  20.         enableWorker: true,
  21.         enableSoftwareAES: false,
  22.         startLevel: undefined,
  23.         startFragPrefetch: true,
  24.         appendErrorMaxRetry: 3,
  25.         enableWebVTT: false,
  26.         enableCEA708Captions: false,
  27.         stretchShortVideoTrack: false,
  28.         maxAudioFramesDrift: 1,
  29.         forceKeyFrameOnDiscontinuity: true,
  30.         abrEwmaFastLive: 5.0,
  31.         abrEwmaSlowLive: 9.0,
  32.         abrEwmaDefaultEstimate: 500000,
  33.         abrBandWidthFactor: 0.95,
  34.         abrBandWidthUpFactor: 0.7,
  35.         minAutoBitrate: 0,
  36.         loader: hlsCustomLoader,
  37.         manifestLoadingMaxRetry: 6,
  38.         fragLoadingMaxRetry: 6,
  39.         manifestLoadingTimeOut: 20000,
  40.         fragLoadingTimeOut: 20000,
  41.         nudgeMaxRetry: 6
  42.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement