HTML 视频播放器在不刷新的情况下无法加载



html5 player不刷新就无法加载. .如何解决这个问题?

<!--IsvideoFileStart-->

<link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js"></script>
<div class="nexmoe-item">
<div class="mdui-center" id="dplayer"></div>
</div>
<script>
const dp = new DPlayer({
container: document.getElementById('dplayer'),
lang:'zh-en',
video: {
url: '<!--FileDownUrl-->',
type: 'auto'
}
});
document.getElementById('dplayer').load();
</script>

<!--IsvideoFileEnd-->

请帮帮我,谢谢!

尝试运行$.pjax.reload({ container: '#dplayer' });

重新加载

相关内容

  • 没有找到相关文章