Skip to content
Snippets Groups Projects
Commit ea39df7b authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

PlayIndex: ensure mediawrapper is from ML

This ensures that we get all meta data for the file being played.
parent 95bb1f3a
No related branches found
No related tags found
1 merge request!2181VideoPlayer: fix audio playback when leaving pip
......@@ -482,7 +482,8 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
0
}
val mw = mediaList.getMedia(index) ?: return
val media = mediaList.getMedia(index) ?: return
val mw = medialibrary.getMedia(media.uri) ?: media
val isInCustomPiP: Boolean = service.isInPiPMode.value ?: false
if (mw.type == MediaWrapper.TYPE_VIDEO && !isAppStarted() && !isInCustomPiP) videoBackground = true
val isVideoPlaying = mw.type == MediaWrapper.TYPE_VIDEO && player.isVideoPlaying()
......
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