Respect media speed for videos
This commit is contained in:
parent
b1190881ba
commit
a91d44e787
|
@ -212,10 +212,6 @@ public class PlaybackControlsDialog extends DialogFragment {
|
|||
}
|
||||
|
||||
private float getCurrentSpeed() {
|
||||
if (isPlayingVideo) {
|
||||
return UserPreferences.getVideoPlaybackSpeed();
|
||||
}
|
||||
|
||||
float playbackSpeed = SPEED_USE_GLOBAL;
|
||||
if (controller != null) {
|
||||
Playable media = controller.getMedia();
|
||||
|
@ -227,8 +223,12 @@ public class PlaybackControlsDialog extends DialogFragment {
|
|||
}
|
||||
|
||||
if (playbackSpeed == SPEED_USE_GLOBAL) {
|
||||
if (isPlayingVideo) {
|
||||
playbackSpeed = UserPreferences.getVideoPlaybackSpeed();
|
||||
} else {
|
||||
playbackSpeed = UserPreferences.getPlaybackSpeed();
|
||||
}
|
||||
}
|
||||
|
||||
return playbackSpeed;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue