mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Make StyledPlayerControlView use control dispatcher for speed changes
#exofixit PiperOrigin-RevId: 346972678
This commit is contained in:
parent
2ee40270e5
commit
297c2bf901
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue