We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7faa69 commit 14b4658Copy full SHA for 14b4658
1 file changed
library/src/commonMain/kotlin/project/pipepipe/app/viewmodel/VideoDetailViewModel.kt
@@ -164,7 +164,7 @@ class VideoDetailViewModel()
164
val controller = SharedContext.platformMediaController
165
val streamInfo = uiState.value.currentStreamInfo
166
if (SharedContext.playbackMode.value == PlaybackMode.VIDEO_AUDIO
167
- && controller?.currentMediaItem?.value?.mediaId == streamInfo?.url) {
+ && controller?.currentMediaItem?.value?.mediaId == streamInfo?.url && controller?.isPlaying?.value == true) {
168
SharedContext.playingVideoUrlBeforeMinimizing = streamInfo?.url
169
}
170
SharedContext.updatePlaybackMode(PlaybackMode.AUDIO_ONLY)
0 commit comments