Fixed playback speed not changing when episode ended and next started playing

This commit is contained in:
Jonas Kalderstam 2019-09-16 14:38:07 +02:00
parent 044fd7e7f9
commit de78c0e31e

View File

@ -245,6 +245,7 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
try { try {
media.loadMetadata(); media.loadMetadata();
callback.onMediaChanged(false); callback.onMediaChanged(false);
setPlaybackParams(UserPreferences.getPlaybackSpeed(media), UserPreferences.isSkipSilence());
if (stream) { if (stream) {
mediaPlayer.setDataSource(media.getStreamUrl()); mediaPlayer.setDataSource(media.getStreamUrl());
} else if (media.getLocalMediaUrl() != null && new File(media.getLocalMediaUrl()).canRead()) { } else if (media.getLocalMediaUrl() != null && new File(media.getLocalMediaUrl()).canRead()) {