Skip to content

Multi period streams with SegmentTemplate not working anymore. #545

Closed
@PatrikCarlander

Description

@PatrikCarlander

Test stream: GPAC "live profile with five periods" or any streams with multi period and SegmentTemplate.
It was this change that break it.
Compare buffering goals to the difference between next segment's start
Change-Id: Ie9fac1b427b631ac467656c15fd8608e12c07efc
commit 0df1ab0

The reason is the new way to calculate bufferAhead in shaka.media.StreamingEngine.prototype.update_ function.
It using getSegmentReferenceNeeded_ method and calculate bufferedAhead
bufferedAhead = needPeriod.startTime + reference.startTime - playheadTime;

This will be next period's start time plus start time of the segment reference from the current period after period end (this segment should not exist).
This will make bufferAhead to big which cause that we fall out of the function that should make the period switch.

It's easy to reproduce and track, play GPAC "live profile with five periods" and it will stop playback before period switch (after 2 min),
if you look at the v2 log for bufferAhead you will see it's to big.

Metadata

Metadata

Assignees

Labels

status: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions