Ver Fonte

fix: station wouldn't unpause after closing media modal

Kristian Vos há 2 anos atrás
pai
commit
b61cc3cbc6

+ 2 - 0
frontend/src/components/modals/EditSong/index.vue

@@ -1476,6 +1476,8 @@ onBeforeUnmount(() => {
 
 	unloadSong(youtubeId.value, song.value._id);
 
+	updateMediaModalPlayingAudio(false);
+
 	playerReady.value = false;
 	clearInterval(interval.value);
 	clearInterval(activityWatchVideoDataInterval.value);

+ 1 - 0
frontend/src/components/modals/ViewYoutubeVideo.vue

@@ -459,6 +459,7 @@ onMounted(() => {
 onBeforeUnmount(() => {
 	stopVideo();
 	pauseVideo(true);
+	updateMediaModalPlayingAudio(false);
 	player.value.duration = "0.000";
 	player.value.currentTime = 0;
 	player.value.playerReady = false;