@@ -567,11 +567,11 @@ Mss.dependencies.MssParser = function() {
567567 mpd . timescale = timescale ? parseFloat ( timescale ) : DEFAULT_TIME_SCALE ;
568568 var isLive = this . domParser . getAttributeValue ( smoothNode , 'IsLive' ) ;
569569 mpd . type = ( isLive !== null && isLive . toLowerCase ( ) === 'true' ) ? 'dynamic' : 'static' ;
570- var canSeek = this . domParser . getAttributeValue ( smoothNode , 'CanSeek' ) ;
571- //mpd.canSeek = (canSeek !== null && canSeek.toLowerCase() === 'true');
570+ var canSeek = this . domParser . getAttributeValue ( smoothNode , 'CanSeek' ) ;
572571 var dvrWindowLength = parseFloat ( this . domParser . getAttributeValue ( smoothNode , 'DVRWindowLength' ) ) ;
573- if ( dvrWindowLength === 0 && canSeek !== null && canSeek . toLowerCase ( ) === 'true' )
572+ if ( dvrWindowLength === 0 && canSeek !== null && canSeek . toLowerCase ( ) === 'true' ) {
574573 dvrWindowLength = Infinity ;
574+ }
575575 mpd . timeShiftBufferDepth = dvrWindowLength / mpd . timescale ;
576576 var duration = parseFloat ( this . domParser . getAttributeValue ( smoothNode , 'Duration' ) ) ;
577577
@@ -653,8 +653,9 @@ Mss.dependencies.MssParser = function() {
653653
654654 if ( mpd . type === "dynamic" ) {
655655 // set availabilityStartTime for infinite DVR Window from segment timeline duration
656- if ( mpd . timeShiftBufferDepth === Infinity )
657- mpd . availabilityStartTime = new Date ( manifestLoadedTime . getTime ( ) - ( adaptations [ 1 ] . SegmentTemplate . SegmentTimeline . duration * 1000 ) ) ;
656+ if ( mpd . timeShiftBufferDepth === Infinity ) {
657+ mpd . availabilityStartTime = new Date ( manifestLoadedTime . getTime ( ) - ( adaptations [ 1 ] . SegmentTemplate . SegmentTimeline . duration * 1000 ) ) ;
658+ }
658659 // Match timeShiftBufferDepth to video segment timeline duration
659660 if ( mpd . timeShiftBufferDepth > 0 &&
660661 mpd . timeShiftBufferDepth !== Infinity &&
@@ -774,4 +775,4 @@ Mss.dependencies.MssParser = function() {
774775
775776Mss . dependencies . MssParser . prototype = {
776777 constructor : Mss . dependencies . MssParser
777- } ;
778+ } ;
0 commit comments