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
297c2bf9
authored
Dec 11, 2020
by
bachinger
Committed by
Ian Baker
Dec 14, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Make StyledPlayerControlView use control dispatcher for speed changes
#exofixit PiperOrigin-RevId: 346972678
parent
2ee40270
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 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 @
297c2bf9
...
@@ -51,7 +51,6 @@ import com.google.android.exoplayer2.ControlDispatcher;
...
@@ -51,7 +51,6 @@ import com.google.android.exoplayer2.ControlDispatcher;
import
com.google.android.exoplayer2.DefaultControlDispatcher
;
import
com.google.android.exoplayer2.DefaultControlDispatcher
;
import
com.google.android.exoplayer2.ExoPlayerLibraryInfo
;
import
com.google.android.exoplayer2.ExoPlayerLibraryInfo
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.PlaybackParameters
;
import
com.google.android.exoplayer2.PlaybackPreparer
;
import
com.google.android.exoplayer2.PlaybackPreparer
;
import
com.google.android.exoplayer2.Player
;
import
com.google.android.exoplayer2.Player
;
import
com.google.android.exoplayer2.Player.Events
;
import
com.google.android.exoplayer2.Player.Events
;
...
@@ -1491,7 +1490,8 @@ public class StyledPlayerControlView extends FrameLayout {
...
@@ -1491,7 +1490,8 @@ public class StyledPlayerControlView extends FrameLayout {
if
(
player
==
null
)
{
if
(
player
==
null
)
{
return
;
return
;
}
}
player
.
setPlaybackParameters
(
new
PlaybackParameters
(
speed
));
controlDispatcher
.
dispatchSetPlaybackParameters
(
player
,
player
.
getPlaybackParameters
().
withSpeed
(
speed
));
}
}
/* package */
void
requestPlayPauseFocus
()
{
/* package */
void
requestPlayPauseFocus
()
{
...
...
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