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 authored and joeyparrish committed Jun 14, 2022
1 parent bfdeb73 commit 76cd039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1227,9 +1227,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 @@ -1244,6 +1241,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 76cd039

Please sign in to comment.