A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: subtitles are off screen
aminnausin5db87ca8a840
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex f9e8452c..ec74adb7 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -1149,9 +1149,8 @@ watch(isThumbnailVisible, async () => {playerSubtitles.value?.resizeOctopus();});-watch(viewMode, async () => {- await nextTick();- playerSubtitles.value?.resizeOctopus();+watch(viewMode, () => {+ nextTick(() => playerSubtitles.value?.resizeOctopus());});onMounted(() => {@@ -1211,7 +1210,7 @@ defineExpose({}">- <div :class="['z-3 flex h-full items-center justify-center', { 'max-h-[71vh]': isNormalView && !aspectRatio.isAspectVideo }, { 'bg-black/10': isLoading }]">+ <div :class="['z-3 flex h-full justify-center', { 'max-h-[71vh]': isNormalView && !aspectRatio.isAspectVideo }, { 'bg-black/10': isLoading }]"><videoid="video-source"type="video/mp4"diff --git a/resources/js/components/video/subtitles/PlayerSubtitles.vue b/resources/js/components/video/subtitles/PlayerSubtitles.vueindex 9115e6bf..659a06eb 100644--- a/resources/js/components/video/subtitles/PlayerSubtitles.vue+++ b/resources/js/components/video/subtitles/PlayerSubtitles.vue@@ -219,5 +219,6 @@ defineExpose({<style lang="css">.libassjs-canvas-parent {z-index: 3;+ position: static !important;}</style>