我正在尝试在我正在开发的网站(http://videojs.com/)中使用 VideoJS,但是我正在尝试在页面上加载一个简单的 YouTube 视频以进行测试,但仍然无法正常工作:
<div class="video-js-box">
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
<div style="position: absolute; top: 50px; left: 600px; display:none">
<video id="my_video_1" class="video-js vjs-default-skin" controls
preload="auto" width="640" height="264" poster="my_video_poster.png"
data-setup="{}">
<source src="http://www.youtube.com/watch?v=ehjDXDVpLgo" type='video/mp4'></source>
<source src="http://www.youtube.com/watch?v=ehjDXDVpLgo" type='video/webm'></source>
</video>
<!-- Download links provided for devices that can't play video in the browser. -->
<p class="vjs-no-video"><strong>Download Video:</strong>
<a href="http://www.youtube.com/watch?v=ehjDXDVpLgo">MP4</a>,
<a href="http://www.youtube.com/watch?v=ehjDXDVpLgo">WebM</a>,
<a href="http://www.youtube.com/watch?v=ehjDXDVpLgo">Ogg</a><br>
<!-- Support VideoJS by keeping this link. -->
<a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
</p>
</div>
<div style="clear:both;"></div>
</div><!--main-->
在页面上我有:
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
任何线索这里出了什么问题?我期待能够在我的页面上加载和播放该视频。