Skip to content
Snippets Groups Projects
Commit ce2abf0a authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Nicolas Pomepuy
Browse files

Fix video as audio playback resume

Fix #1086
parent b00110d1
No related branches found
No related tags found
Loading
Pipeline #11676 passed with stage
in 4 minutes and 7 seconds
......@@ -167,6 +167,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if (!audio && position < playList.size && settings.getBoolean(VIDEO_PAUSED, false)) {
playList[position].addFlags(AbstractMediaWrapper.MEDIA_PAUSED)
}
if (audio) playList[position].addFlags(AbstractMediaWrapper.MEDIA_FORCE_AUDIO)
load(playList, position, true)
loadingLastPlaylist = false
if (!audio) {
......@@ -806,7 +807,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
}
}
internal fun isAudioList() = !player.canSwitchToVideo() && mediaList.isAudioList
internal fun isAudioList() = !player.isVideoPlaying() && mediaList.isAudioList
}
class ABRepeat(var start: Long = -1L, var stop: Long = -1L)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment