我从http://www.videojs.com/下载了 video-js-4.2.1.zip ,在 demo.html 中我更改了视频的源文件,但它不会加载。我什至输入了完整的 http:// 地址,但仍然无法正常工作。它仅适用于http://www.videojs.com/的演示视频。如何让它发挥作用?
尊敬的 Vasile Lucian BUJOR
PS。这是代码(我为海报添加了一个 png 并从原始代码中删除了标题并将 demo.html 重命名为 index.html ):
<!DOCTYPE html>
<html>
<head>
<title>Video</title>
<!-- Chang URLs to wherever Video.js files will be hosted -->
<link href="video-js.css" rel="stylesheet" type="text/css">
<!-- video.js must be in the <head> for older IEs to work. -->
<script src="video.js"></script>
<!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</head>
<body>
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="360"
poster="principal.png"
data-setup="{}">
<source src="/wildelife.mp4" type='video/mp4' />
<source src="/wildelife.webm" type='video/webm' />
</video>
</body>
</html>