A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: video player is not appended to pip window
aminnausinc4fbcde1b05a
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex 9726c2fa..ba6b30d0 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -1225,11 +1225,13 @@ const togglePictureInPicture = async () => {'documentPictureInPicture' in window? {isOpen: !!window.documentPictureInPicture.window,- open: () =>- window.documentPictureInPicture.requestWindow({+ open: async () => {+ const pipWindow = await window.documentPictureInPicture.requestWindow({width: 1280,height: 720,- }),+ });+ pipWindow.document.body.append(player.value as Node);+ },close: () => window.documentPictureInPicture.window!.close(),}: { isOpen: !!document.pictureInPictureElement, open: () => player.value!.requestPictureInPicture(), close: () => document.exitPictureInPicture() };