Skip to content

Commit

Permalink
fix: Fix bufferBehind setting broken by image segments (shaka-project…
Browse files Browse the repository at this point in the history
  • Loading branch information
littlespex committed Nov 17, 2022
1 parent 76149ae commit cd1b7c0
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
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
Expand Up @@ -2198,6 +2198,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 cd1b7c0

Please sign in to comment.