File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,14 @@ shaka.ui.RemoteButton = class extends shaka.ui.Element {
176
176
} catch ( e ) {
177
177
handleAvailabilityChange ( /* availability= */ true ) ;
178
178
}
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
+ }
184
187
}
185
188
}
186
189
You can’t perform that action at this time.
0 commit comments