mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge branch 'drhill-dev-v2_subtitles_view' into dev-v2
This commit is contained in:
commit
4c427f5b13
1 changed files with 15 additions and 0 deletions
|
|
@ -472,6 +472,16 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
||||||
return overlayFrameLayout;
|
return overlayFrameLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the {@link SubtitleView}.
|
||||||
|
*
|
||||||
|
* @return The {@link SubtitleView}, or {@code null} if the layout has been customized and the
|
||||||
|
* subtitle view is not present.
|
||||||
|
*/
|
||||||
|
public SubtitleView getSubtitleView() {
|
||||||
|
return subtitleView;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(MotionEvent ev) {
|
public boolean onTouchEvent(MotionEvent ev) {
|
||||||
if (!useController || player == null || ev.getActionMasked() != MotionEvent.ACTION_DOWN) {
|
if (!useController || player == null || ev.getActionMasked() != MotionEvent.ACTION_DOWN) {
|
||||||
|
|
@ -494,6 +504,11 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||||
|
return useController ? controller.dispatchKeyEvent(event) : super.dispatchKeyEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
private void maybeShowController(boolean isForced) {
|
private void maybeShowController(boolean isForced) {
|
||||||
if (!useController || player == null) {
|
if (!useController || player == null) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue