Closed
Description
We use two different providers for live DASH playback, and they have chosen different strategies for segment templating. One has the template format index-$Number$-IDENTIFIER.mp4
where the identifier is unique for the encoder session and ensures no future segments share URI with a previous one. The other provider uses index-$Number$.mp4
, but relies on the startNumber
property in the SegmentTemplate
as an identifier to make sure URIs are unique.
The second strategy is no longer working in Shaka. It seems like the startNumber is being ignored. Just to illustrate (pseudo):
var mpd1 = {
availabilityStartTime: SIX_HUNDRED_SECONDS_AGO,
segmentDuration: SIX_SECONDS,
segmentTemplateStartNumber: 1,
segmentTemplate: 'index-$Number$-IDENTIFIER.mp4'
};
// Expected and actual current segment: index-100-IDENTIFIER.mp4
var mpd2 = {
availabilityStartTime: SIX_HUNDRED_SECONDS_AGO,
segmentDuration: SIX_SECONDS,
segmentTemplateStartNumber: 200,
segmentTemplate: 'index-$Number$.mp4'
};
// Expected current segment: index-300.mp4
// Actual: index-100.mp4
Is this format unsupported or is this a bug? I can provide the actual manifests over a private channel if needed.