我使用JWPlayer在本地主機JWPlayer刷新頁面錯誤:無法加載插件:未找到文件
這裏是我的代碼:
<div id="Player">loading...</div>
<script type="text/javascript">
jwplayer("Player").setup({
file: "<?php echo $video['path']; ?>",
//image: "/test.jpg",
displaytitle: false,
author: "Mohammad Masoudian",
autoStart: false,
volume: 75,
width: 544,
height: 400
});
</script>
,當我去這個地址http://cms2.localhost.com/video/1/我可以看到視頻,但當我刷新頁面時,我收到此錯誤?
無法加載插件:未找到文件
爲什麼呢?
在我聽起來像你的PHP腳本沒有加載$視頻['path']當你刷新頁面 – Rooster
我檢查它在其他瀏覽器,我認爲它的瀏覽器問題 –
你可以提出一個公開的URL顯示問題? – emaxsaun