Skip to content

Commit

Permalink
fix(demo): allow switch between UITextDisplayer and SimpleTextDisplay…
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván committed Jun 7, 2022
1 parent 8719bdc commit 28689f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/main.js
Expand Up @@ -1233,9 +1233,6 @@ shakaDemo.Main = class {
// The currently-selected asset changed, so update asset cards.
this.dispatchEventWithName_('shaka-main-selected-asset-changed');

await this.drmConfiguration_(asset);
this.controls_.getCastProxy().setAppData({'asset': asset});

// Enable the correct set of controls before loading.
// The video container influences the TextDisplayer used.
if (this.nativeControlsEnabled_) {
Expand All @@ -1250,6 +1247,9 @@ shakaDemo.Main = class {
this.player_.setVideoContainer(this.container_);
}

await this.drmConfiguration_(asset);
this.controls_.getCastProxy().setAppData({'asset': asset});

// Finally, the asset can be loaded.
let manifestUri = asset.manifestUri;
// If we have an offline copy, use that. If the offlineUri field is null,
Expand Down

0 comments on commit 28689f3

Please sign in to comment.