@@ -21,7 +21,6 @@ goog.require('shaka.net.NetworkingEngine');
2121goog . require ( 'shaka.text.TextEngine' ) ;
2222goog . require ( 'shaka.util.Error' ) ;
2323goog . require ( 'shaka.util.Functional' ) ;
24- goog . require ( 'shaka.util.Iterables' ) ;
2524goog . require ( 'shaka.util.LanguageUtils' ) ;
2625goog . require ( 'shaka.util.ManifestParserUtils' ) ;
2726goog . require ( 'shaka.util.MimeUtils' ) ;
@@ -103,7 +102,7 @@ shaka.dash.DashParser = class {
103102
104103 /**
105104 * Period IDs seen in previous manifest.
106- * @private {!Array.<number >}
105+ * @private {!Array.<string >}
107106 */
108107 this . lastManifestUpdatePeriodIds_ = [ ] ;
109108
@@ -541,10 +540,9 @@ shaka.dash.DashParser = class {
541540 const periods = [ ] ;
542541 let prevEnd = 0 ;
543542 const periodNodes = XmlUtils . findChildren ( mpd , 'Period' ) ;
544- // This uses a for-loop rather than a for-of loop because this needs to look
545- // ahead to the next element.
546- const enumerate = ( it ) => shaka . util . Iterables . enumerate ( it ) ;
547- for ( const { i, item : elem , next} of enumerate ( periodNodes ) ) {
543+ for ( let i = 0 ; i < periodNodes . length ; i ++ ) {
544+ const elem = periodNodes [ i ] ;
545+ const next = periodNodes [ i + 1 ] ;
548546 const start = /** @type {number } */ (
549547 XmlUtils . parseAttr ( elem , 'start' , XmlUtils . parseDuration , prevEnd ) ) ;
550548 const periodId = elem . id ;
0 commit comments