File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -430,9 +430,6 @@ shaka.media.PreloadManager = class extends shaka.util.FakeEventTarget {
430
430
await this . parseManifestInner_ ( ) ;
431
431
this . throwIfDestroyed_ ( ) ;
432
432
433
- await this . chooseInitialVariant_ ( ) ;
434
- this . throwIfDestroyed_ ( ) ;
435
-
436
433
if ( ! shaka . drm . DrmUtils . isMediaKeysPolyfilled ( 'webkit' ) ) {
437
434
await this . initializeDrm ( ) ;
438
435
this . throwIfDestroyed_ ( ) ;
@@ -557,6 +554,8 @@ shaka.media.PreloadManager = class extends shaka.util.FakeEventTarget {
557
554
if ( ! this . manifest_ ) {
558
555
this . manifest_ = await this . parser_ . start (
559
556
this . assetUri_ , this . manifestPlayerInterface_ ) ;
557
+
558
+ await this . chooseInitialVariant_ ( ) ;
560
559
}
561
560
562
561
this . manifestPromise_ . resolve ( ) ;
@@ -675,9 +674,6 @@ shaka.media.PreloadManager = class extends shaka.util.FakeEventTarget {
675
674
* @private
676
675
*/
677
676
async chooseInitialVariant_ ( ) {
678
- goog . asserts . assert (
679
- this . manifest_ , 'The manifest should already be parsed.' ) ;
680
-
681
677
// This step does not have any associated events, as it is only part of the
682
678
// "load" state in the old state graph.
683
679
You can’t perform that action at this time.
0 commit comments