Skip to content

Commit

Permalink
fix: Fix bufferBehind setting broken by image segments (#4718)
Browse files Browse the repository at this point in the history
Resolves #4717
  • Loading branch information
littlespex authored and joeyparrish committed Dec 8, 2022
1 parent 9934cd7 commit 2987451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ shaka.dash.SegmentTemplate = class {
},
};
} else if (info.segmentDuration) {
if (!isUpdate) {
if (!isUpdate && context.adaptationSet.contentType !== 'image') {
context.presentationTimeline.notifyMaxSegmentDuration(
info.segmentDuration);
context.presentationTimeline.notifyMinSegmentStartTime(
Expand Down
1 change: 1 addition & 0 deletions test/dash/dash_parser_manifest_unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,7 @@ describe('DashParser Manifest', () => {
/** @type {shaka.extern.Manifest} */
const manifest = await parser.start('dummy://foo', playerInterface);
expect(manifest.imageStreams.length).toBe(1);
expect(manifest.presentationTimeline.getMaxSegmentDuration()).toBe(1);
const imageStream = manifest.imageStreams[0];
expect(imageStream.width).toBe(1024);
expect(imageStream.height).toBe(1152);
Expand Down

0 comments on commit 2987451

Please sign in to comment.