From cbc43b7e0667a46ad984306fa2fba5d2c0835947 Mon Sep 17 00:00:00 2001 From: Malard Date: Sat, 27 Jan 2024 13:41:26 +0000 Subject: [PATCH] fixed: background path was invalid for html5 streamed content fixes #446 --- dist/videoPlayer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/videoPlayer.html b/dist/videoPlayer.html index 03858309..f40ac76d 100644 --- a/dist/videoPlayer.html +++ b/dist/videoPlayer.html @@ -21,7 +21,7 @@ } function getBaseURL() { var parts = window.location.href.split('videoPlayer.html'); - return parts[0]; + return parts[0].replace(/\/\s*$/, ''); } // Vars. @@ -50,7 +50,7 @@ }); $player.append($('', { "type": 'video/mp4', - "src": getBaseURL() + src + "src": getBaseURL() + '/' + src })); $player.attr('width', width).attr('height', height); }