dplayer多盘支持

pull/18/head
居桉 2020-02-27 18:28:27 +08:00 committed by GitHub
parent 9c2269eb9b
commit 4bb80bced3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@
); );
} }
function createDplayers(videos) { function createDplayers(videos) {
var url = '<?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&amp;',spurlencode(path_format($_SERVER['base_path'] . '/' . $path), '/'))); ?>' , subtitle = url.replace(/\.[^\.]+?(\?|$)/,'.vtt$1'); var url = '<?php echo str_replace('%2523', '%23', str_replace('%26amp%3B','&amp;',spurlencode(path_format($_SERVER['base_disk_path'] . '/' . $path), '/'))); ?>' , subtitle = url.replace(/\.[^\.]+?(\?|$)/,'.vtt$1');
var dp = new DPlayer({ var dp = new DPlayer({
container: document.getElementById('video-a0'), container: document.getElementById('video-a0'),
autoplay: false, autoplay: false,