Skip to content

Commit

Permalink
Merge pull request #565 from malard/html5streamingbg
Browse files Browse the repository at this point in the history
fixed: background path was invalid for html5 streamed content fixes #446
  • Loading branch information
malard authored Jan 29, 2024
2 parents d59e9db + cbc43b7 commit 44d57a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/videoPlayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
function getBaseURL() {
var parts = window.location.href.split('videoPlayer.html');
return parts[0];
return parts[0].replace(/\/\s*$/, '');
}

// Vars.
Expand Down Expand Up @@ -50,7 +50,7 @@
});
$player.append($('<source>', {
"type": 'video/mp4',
"src": getBaseURL() + src
"src": getBaseURL() + '/' + src
}));
$player.attr('width', width).attr('height', height);
}
Expand Down

0 comments on commit 44d57a3

Please sign in to comment.