mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
Allow startNumber attribute to be 0.
Closes b/19093388, #10. Change-Id: Ie05b1f337f4ffd6b24d3e56666663a2ecc284deb
This commit is contained in:
committed by
Joey Parrish
parent
08220d77b2
commit
5c7fca90b6
@@ -975,8 +975,9 @@ shaka.dash.mpd.SegmentTemplate.prototype.parse = function(parent, elem) {
|
||||
this.segmentDuration =
|
||||
mpd.parseAttr_(elem, 'duration', mpd.parseNonNegativeInt_);
|
||||
|
||||
// The startNumber attribute defaults to 1 but may be set to 0 explicitly.
|
||||
this.firstSegmentNumber =
|
||||
mpd.parseAttr_(elem, 'startNumber', mpd.parsePositiveInt_) || 1;
|
||||
mpd.parseAttr_(elem, 'startNumber', mpd.parseNonNegativeInt_) || 1;
|
||||
|
||||
this.mediaUrlTemplate = mpd.parseAttr_(elem, 'media', mpd.parseString_);
|
||||
this.indexUrlTemplate = mpd.parseAttr_(elem, 'index', mpd.parseString_);
|
||||
|
||||
Reference in New Issue
Block a user