Skip to content

Commit 09d2041

Browse files
authored
fix(UI): Show the remote button when we already connected (#8461)
1 parent 82b9541 commit 09d2041

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ui/remote_button.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,14 @@ shaka.ui.RemoteButton = class extends shaka.ui.Element {
176176
} catch (e) {
177177
handleAvailabilityChange(/* availability= */ true);
178178
}
179-
} else if (this.callbackId_ != -1) {
180-
// If remote device is connecting or connected, we should stop
181-
// watching remote device availability to save power.
182-
await this.video.remote.cancelWatchAvailability(this.callbackId_);
183-
this.callbackId_ = -1;
179+
} else {
180+
shaka.ui.Utils.setDisplay(this.remoteButton_, true);
181+
if (this.callbackId_ != -1) {
182+
// If remote device is connecting or connected, we should stop
183+
// watching remote device availability to save power.
184+
await this.video.remote.cancelWatchAvailability(this.callbackId_);
185+
this.callbackId_ = -1;
186+
}
184187
}
185188
}
186189

0 commit comments

Comments
 (0)