Skip to content

Commit

Permalink
Add lowLatencyStallThreshold to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmccartney committed Feb 7, 2025
1 parent bcede9a commit 332df78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@ declare namespace dashjs {
bufferTimeDefault?: number,
longFormContentDurationThreshold?: number,
stallThreshold?: number,
lowLatencyStallThreshold?: number,
useAppendWindow?: boolean,
setStallState?: boolean
avoidCurrentTimeRangePruning?: boolean
Expand Down
4 changes: 4 additions & 0 deletions src/core/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ import Events from './events/Events.js';
* bufferTimeDefault: 18,
* longFormContentDurationThreshold: 600,
* stallThreshold: 0.3,
* lowLatencyStallThreshold: 0.3,
* useAppendWindow: true,
* setStallState: true,
* avoidCurrentTimeRangePruning: false,
Expand Down Expand Up @@ -429,6 +430,8 @@ import Events from './events/Events.js';
* Initial buffer level before playback starts
* @property {number} [stallThreshold=0.3]
* Stall threshold used in BufferController.js to determine whether a track should still be changed and which buffer range to prune.
* @property {number} [lowLatencyStallThreshold=0.3]
* Low Latency stall threshold used in BufferController.js to determine whether a track should still be changed and which buffer range to prune.
* @property {boolean} [useAppendWindow=true]
* Specifies if the appendWindow attributes of the MSE SourceBuffers should be set according to content duration from manifest.
* @property {boolean} [setStallState=true]
Expand Down Expand Up @@ -1147,6 +1150,7 @@ function Settings() {
bufferTimeDefault: 18,
longFormContentDurationThreshold: 600,
stallThreshold: 0.3,
lowLatencyStallThreshold: 0.3,
useAppendWindow: true,
setStallState: true,
avoidCurrentTimeRangePruning: false,
Expand Down

0 comments on commit 332df78

Please sign in to comment.