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
f68fc3e7
authored
Sep 02, 2020
by
insun
Committed by
Oliver Woodman
Sep 07, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Prevent buffering when clicking ffwd button at the end of stream
PiperOrigin-RevId: 329634001
parent
5b80eb8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java
View file @
f68fc3e7
...
...
@@ -1638,7 +1638,9 @@ public class StyledPlayerControlView extends FrameLayout {
}
if
(
event
.
getAction
()
==
KeyEvent
.
ACTION_DOWN
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_MEDIA_FAST_FORWARD
)
{
controlDispatcher
.
dispatchFastForward
(
player
);
if
(
player
.
getPlaybackState
()
!=
Player
.
STATE_ENDED
)
{
controlDispatcher
.
dispatchFastForward
(
player
);
}
}
else
if
(
keyCode
==
KeyEvent
.
KEYCODE_MEDIA_REWIND
)
{
controlDispatcher
.
dispatchRewind
(
player
);
}
else
if
(
event
.
getRepeatCount
()
==
0
)
{
...
...
@@ -1808,7 +1810,9 @@ public class StyledPlayerControlView extends FrameLayout {
}
else
if
(
previousButton
==
view
)
{
controlDispatcher
.
dispatchPrevious
(
player
);
}
else
if
(
fastForwardButton
==
view
)
{
controlDispatcher
.
dispatchFastForward
(
player
);
if
(
player
.
getPlaybackState
()
!=
Player
.
STATE_ENDED
)
{
controlDispatcher
.
dispatchFastForward
(
player
);
}
}
else
if
(
rewindButton
==
view
)
{
controlDispatcher
.
dispatchRewind
(
player
);
}
else
if
(
playPauseButton
==
view
)
{
...
...
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