Adds support for adjustable playback speed
ExoPlayer was updated to 2.4.2, which supports playback speed change. A speed selector was also added in the MainPlayer and PlayerPopup. Fixes #153.
This commit is contained in:
parent
3cb4952281
commit
7b60648424
6 changed files with 98 additions and 11 deletions
|
|
@ -51,7 +51,8 @@ public class NavigationHelper {
|
|||
.putExtra(VideoPlayer.INDEX_SEL_VIDEO_STREAM, instance.getSelectedStreamIndex())
|
||||
.putExtra(VideoPlayer.VIDEO_STREAMS_LIST, instance.getVideoStreamsList())
|
||||
.putExtra(VideoPlayer.VIDEO_ONLY_AUDIO_STREAM, instance.getAudioStream())
|
||||
.putExtra(BasePlayer.START_POSITION, ((int) instance.getPlayer().getCurrentPosition()));
|
||||
.putExtra(BasePlayer.START_POSITION, ((int) instance.getPlayer().getCurrentPosition()))
|
||||
.putExtra(BasePlayer.PLAYBACK_SPEED, instance.getPlaybackSpeed());
|
||||
}
|
||||
|
||||
public static Intent getOpenBackgroundPlayerIntent(Context context, StreamInfo info) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue