A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: screen orientation lock breaks player on unsupported devices with browser level support (desktop)
aminnausin05f61e5215f7
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex b2dba1c4..b2ebaa19 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -780,7 +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) await (screen.orientation as ScreenOrientation).lock?.('landscape');+ if (!isAudio.value && 'lock' in screen.orientation) screen.orientation.lock('landscape').catch(() => {});viewMode.value = 'fullscreen';document.documentElement.classList.add('fullscreen');break;