Skip to content

Commit 20a1ff1

Browse files
authored
Fix prebuffering static mpds (#3405)
* Check if stream is dynamic when trying to prebuffer * Check if stream is dynamic when trying to prebuffer
1 parent f2028ba commit 20a1ff1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dashjs",
3-
"version": "3.1.3",
3+
"version": "3.1.4",
44
"description": "A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.",
55
"main": "build/es5/index.js",
66
"types": "build/typings/index.d.ts",

src/core/Version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const VERSION = '3.1.3';
1+
const VERSION = '3.1.4';
22
export function getVersionString() {
33
return VERSION;
44
}

src/streaming/controllers/StreamController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ function StreamController() {
282282
const mediaInfo = adapter.getMediaInfoForType(stream.getStreamInfo(), mediaType);
283283
const voRepresentations = adapter.getVoRepresentations(mediaInfo);
284284
voRepresentations.forEach((voRep) => {
285-
const range = timelineConverter.calcSegmentAvailabilityRange(voRep, true);
285+
const isDynamic = adapter.getIsDynamic();
286+
const range = timelineConverter.calcSegmentAvailabilityRange(voRep, isDynamic);
286287

287288
if (range.end < range.start) {
288289
segmentAvailabilityRangeIsOk = false;

0 commit comments

Comments
 (0)