Commit 88fc682d by olly Committed by Oliver Woodman

Expose manual playback control hiding from SimpleExoPlayerView

Issue #2146

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=141036866
parent 01acc0e2
...@@ -398,6 +398,15 @@ public final class SimpleExoPlayerView extends FrameLayout { ...@@ -398,6 +398,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 * 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 * this duration of time has elapsed without user input and with playback or buffering in
* progress. * progress.
...@@ -583,12 +592,6 @@ public final class SimpleExoPlayerView extends FrameLayout { ...@@ -583,12 +592,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
} }
} }
private void hideController() {
if (controller != null) {
controller.hide();
}
}
@SuppressWarnings("ResourceType") @SuppressWarnings("ResourceType")
private static void setResizeModeRaw(AspectRatioFrameLayout aspectRatioFrame, int resizeMode) { private static void setResizeModeRaw(AspectRatioFrameLayout aspectRatioFrame, int resizeMode) {
aspectRatioFrame.setResizeMode(resizeMode); aspectRatioFrame.setResizeMode(resizeMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment