A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: media session artwork https issue
aminnausincd17937df8d0
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vueindex 34ee3baa..0eaebe59 100755--- a/resources/js/components/video/VideoPlayer.vue+++ b/resources/js/components/video/VideoPlayer.vue@@ -276,7 +276,7 @@ const initVideoPlayer = async () => {const artworkURL =handleStorageURL(stateVideo.value.metadata?.poster_url) ||handleStorageURL(stateFolder.value.series?.thumbnail_url) ||- handleStorageURL(new URL('/storage/thumbnails/default.webp', window.location.origin).href);+ new URL('/storage/thumbnails/default.webp', window.location.origin).href;console.log(artworkURL);diff --git a/resources/js/service/util.ts b/resources/js/service/util.tsindex 2388752b..b01217f0 100644--- a/resources/js/service/util.ts+++ b/resources/js/service/util.ts@@ -197,8 +197,8 @@ export function within24Hrs(date: string): boolean {* @param url The storage URL string.* @returns The storage URL string with the correct protocol.*/-export function handleStorageURL(url: string | undefined): string {- if (!url) return '';+export function handleStorageURL(url: string | undefined): string | null {+ if (!url) return null;if (window.location.protocol === 'http:' && url.startsWith(`https://${window.location.host}`)) return url.replace('https:', 'http:');