Skip to content

Commit

Permalink
Fix prebuffering static mpds (#3405)
Browse files Browse the repository at this point in the history
* Check if stream is dynamic when trying to prebuffer

* Check if stream is dynamic when trying to prebuffer
  • Loading branch information
dsilhavy authored Sep 11, 2020
1 parent f2028ba commit 20a1ff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dashjs",
"version": "3.1.3",
"version": "3.1.4",
"description": "A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.",
"main": "build/es5/index.js",
"types": "build/typings/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/core/Version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const VERSION = '3.1.3';
const VERSION = '3.1.4';
export function getVersionString() {
return VERSION;
}
3 changes: 2 additions & 1 deletion src/streaming/controllers/StreamController.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ function StreamController() {
const mediaInfo = adapter.getMediaInfoForType(stream.getStreamInfo(), mediaType);
const voRepresentations = adapter.getVoRepresentations(mediaInfo);
voRepresentations.forEach((voRep) => {
const range = timelineConverter.calcSegmentAvailabilityRange(voRep, true);
const isDynamic = adapter.getIsDynamic();
const range = timelineConverter.calcSegmentAvailabilityRange(voRep, isDynamic);

if (range.end < range.start) {
segmentAvailabilityRangeIsOk = false;
Expand Down

0 comments on commit 20a1ff1

Please sign in to comment.