我一直在为我的一个家庭作业项目制作自己的网站,但我不确定为什么我的视频在我将它们上传到我的域网站时不会显示。当我在本地测试它们时,它们在 Dreamweaver 中运行良好。这是我的网站http://zackvivier.com/portfolio.html如果有帮助,这是我的视频 javascript 代码
var myVid;
function init() {
myVid = document.getElementById('myVideo');
}
function addVideo(whichVideo) {
myVid.innerHTML = "<source src='video/" + whichVideo + ".mp4' type='video/mp4'/><source src='video/" + whichVideo + ".webm' type='video/webm'/><source src='video/" + whichVideo + ".ogv' type='video/ogg'/><object width='540' height='304'> <param name='movie' value='http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf'></param><param name='flashvars' value='src=http://www.halvas.ca/Outbox/" + whichVideo + ".mp4'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='540' height='304' flashvars='src=http://www.halvas.ca/Outbox/" + whichVideo + ".mp4'></embed></object>";
myVid.load();
myVid.play();
}