A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: screen orientation type does not exist in ci
aminnausinc647a5d64139
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex 23d1a553..b2dba1c4 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) screen.orientation.lock('landscape');+ if (!isAudio.value) await (screen.orientation as ScreenOrientation).lock?.('landscape');viewMode.value = 'fullscreen';document.documentElement.classList.add('fullscreen');break;@@ -790,7 +790,7 @@ const cycleViewMode = async (mode: PlayerViewMode) => {default:if (document.fullscreenElement !== null) await document.exitFullscreen();document.documentElement.classList.remove('fullscreen');- screen.orientation.unlock();+ (screen.orientation as ScreenOrientation).unlock?.();viewMode.value = 'normal';break;}diff --git a/resources/js/types/screen-orientation.d.ts b/resources/js/types/screen-orientation.d.tsnew file mode 100644index 00000000..b94bf38a--- /dev/null+++ b/resources/js/types/screen-orientation.d.ts@@ -0,0 +1,4 @@+interface ScreenOrientation {+ lock(orientation: OrientationLockType): Promise<void>;+ unlock(): void;+}