Skip to content

Commit

Permalink
fix(FEC-8791): When changing volume in local mode it's not showing th…
Browse files Browse the repository at this point in the history
…e correct rate/state when returning to local mode after casting (#194)

configure current values before start casting.
  • Loading branch information
Dan Ziv authored Dec 27, 2018
1 parent f9b0441 commit c0d89d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/cast/remote-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ function onRemoteDeviceConnected(payload: RemoteConnectedPayload): void {
if (ui) {
Utils.Object.mergeDeep(config, {ui: {customPreset: ui.uis}});
}
this.configure({
playback: {
muted: this.muted,
volume: this.volume
}
});
// Reset the local player, create new ui wrapper and set the remote player
this._localPlayer.reset();
this._uiWrapper.destroy();
Expand Down

0 comments on commit c0d89d5

Please sign in to comment.