You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* WiP: Optimize the DashHandler.js related functionality
* WiP: Optimizations to decide whether a period is completely buffered
* WiP: Optimizations to decide whether a period is completely buffered
* Fix unit tests
* Refactor to numberOfSegments and account for -1 based index
* Add comment to DashHandler.js
* Minor changes to DashHandler.js
* Refactor TimelineSegmentsGetter.js
* WiP: Rewrite DashHandler.js
* Add mediaFinishedInformation to decide whether all segments of a period have been requested
* Add a safety margin of 0.05 to account for rounding issues when comparing media times
Copy file name to clipboardExpand all lines: src/core/Settings.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ import {HTTPRequest} from '../streaming/vo/metrics/HTTPRequest';
232
232
233
233
/**
234
234
* @typedef {Object} Buffer
235
-
* @property {boolean} [fastSwitchEnabled=false]
235
+
* @property {boolean} [fastSwitchEnabled=true]
236
236
* When enabled, after an ABR up-switch in quality, instead of requesting and appending the next fragment at the end of the current buffer range it is requested and appended closer to the current time.
237
237
*
238
238
* When enabled, The maximum time to render a higher quality is current time + (1.5 * fragment duration).
// Additional segment references may be added to the last period.
205
+
// Additional periods may be added to the end of the MPD.
206
+
// Segment references SHALL NOT be added to any period other than the last period.
207
+
// An MPD update MAY combine adding segment references to the last period with adding of new periods. An MPD update that adds content MAY be combined with an MPD update that removes content.
208
+
// The index of the last requested segment is higher than the number of available segments.
209
+
// For SegmentTimeline and SegmentTemplate the index does not include the startNumber.
210
+
// For SegmentList the index includes the startnumber which is why the numberOfSegments includes this as well
// For dynamic SegmentTimeline manifests we need to check if the next period is already signaled and the segment we fetched before is the last one that is signaled.
223
+
// We can not simply use the index, as numberOfSegments might have decreased after an MPD update
if(requestedTime!==time){// When playing at live edge with 0 delay we may loop back with same time and index until it is available. Reduces verboseness of logs.
233
-
requestedTime=time;
234
-
logger.debug('Getting the request for time : '+time);
0 commit comments