Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prebuffering static mpds #3405

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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