Skip to content

Commit

Permalink
fix(Demo): Allow enable LL only with Low Latency Mode config (shaka-p…
Browse files Browse the repository at this point in the history
…roject#5266)

Previously all config is passed to the player but some config parameters
are untouched, we need only pass the config params that are different,
to allow enable LL with only one change.
  • Loading branch information
avelad committed Jun 9, 2023
1 parent 4ed4f46 commit 70823f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/main.js
Expand Up @@ -1227,9 +1227,8 @@ shakaDemo.Main = class {
// Remove all not-player-applied configurations, by resetting the
// configuration then re-applying the desired configuration.
this.player_.resetConfiguration();
this.player_.configure(this.desiredConfig_);
this.readHash_();
this.player_.configure(assetConfig);
// This uses Player.configure so as to not change |this.desiredConfig_|.
}

const config = storage ?
Expand Down

0 comments on commit 70823f9

Please sign in to comment.