mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Expose manual playback control hiding from SimpleExoPlayerView
Issue #2146 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=141036866
This commit is contained in:
parent
01acc0e201
commit
88fc682dde
1 changed files with 9 additions and 6 deletions
|
|
@ -397,6 +397,15 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the playback controls. Does nothing if playback controls are disabled.
|
||||
*/
|
||||
public void hideController() {
|
||||
if (controller != null) {
|
||||
controller.hide();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the playback controls timeout. The playback controls are automatically hidden after
|
||||
* this duration of time has elapsed without user input and with playback or buffering in
|
||||
|
|
@ -583,12 +592,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
|||
}
|
||||
}
|
||||
|
||||
private void hideController() {
|
||||
if (controller != null) {
|
||||
controller.hide();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("ResourceType")
|
||||
private static void setResizeModeRaw(AspectRatioFrameLayout aspectRatioFrame, int resizeMode) {
|
||||
aspectRatioFrame.setResizeMode(resizeMode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue