Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c427f5b
authored
Dec 02, 2016
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'drhill-dev-v2_subtitles_view' into dev-v2
parents
e803bff2
a7736e10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
library/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
library/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
View file @
4c427f5b
...
...
@@ -472,6 +472,16 @@ public final class SimpleExoPlayerView extends FrameLayout {
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
public
boolean
onTouchEvent
(
MotionEvent
ev
)
{
if
(!
useController
||
player
==
null
||
ev
.
getActionMasked
()
!=
MotionEvent
.
ACTION_DOWN
)
{
...
...
@@ -494,6 +504,11 @@ public final class SimpleExoPlayerView extends FrameLayout {
return
true
;
}
@Override
public
boolean
dispatchKeyEvent
(
KeyEvent
event
)
{
return
useController
?
controller
.
dispatchKeyEvent
(
event
)
:
super
.
dispatchKeyEvent
(
event
);
}
private
void
maybeShowController
(
boolean
isForced
)
{
if
(!
useController
||
player
==
null
)
{
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment