A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: Player auto rotation on mobile Fixes #321
aminnausina082bd173f06
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex ea7a52ad..23d1a553 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -780,6 +780,7 @@ const cycleViewMode = async (mode: PlayerViewMode) => {if (viewMode.value === 'fullscreen') break;if (isPictureInPicture.value) await togglePictureInPicture();if (document.fullscreenElement === null) await container.value.requestFullscreen();+ if (!isAudio.value) screen.orientation.lock('landscape');viewMode.value = 'fullscreen';document.documentElement.classList.add('fullscreen');break;@@ -789,6 +790,7 @@ const cycleViewMode = async (mode: PlayerViewMode) => {default:if (document.fullscreenElement !== null) await document.exitFullscreen();document.documentElement.classList.remove('fullscreen');+ screen.orientation.unlock();viewMode.value = 'normal';break;}