mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Add isControllerVisible
Issue: #4385 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=200986828
This commit is contained in:
parent
5725a72783
commit
9eedb8e855
2 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,8 @@
|
|||
([#4023](https://github.com/google/ExoPlayer/issues/4023)).
|
||||
* Add support for mu-law and A-law PCM with the ffmpeg extension
|
||||
([#4360](https://github.com/google/ExoPlayer/issues/4360)).
|
||||
* Add `PlayerView.isControllerVisible`
|
||||
([#4385](https://github.com/google/ExoPlayer/issues/4385)).
|
||||
|
||||
### 2.8.2 ###
|
||||
|
||||
|
|
|
|||
|
|
@ -696,6 +696,11 @@ public class PlayerView extends FrameLayout {
|
|||
return useController && controller.dispatchMediaKeyEvent(event);
|
||||
}
|
||||
|
||||
/** Returns whether the controller is currently visible. */
|
||||
public boolean isControllerVisible() {
|
||||
return controller != null && controller.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the playback controls. Does nothing if playback controls are disabled.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue