2010-05-21 19:50:51 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>HTML5 Video Player</title>
|
2010-06-03 08:08:04 +03:00
|
|
|
|
|
|
|
<!-- Include the VideoJS Library -->
|
2010-05-21 19:50:51 +03:00
|
|
|
<script src="video.js" type="text/javascript" charset="utf-8"></script>
|
2010-06-03 08:08:04 +03:00
|
|
|
|
2010-05-21 19:50:51 +03:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
2010-06-03 08:08:04 +03:00
|
|
|
// Run the script on page load.
|
2010-05-21 19:50:51 +03:00
|
|
|
|
|
|
|
// If using jQuery
|
|
|
|
// $(function(){
|
|
|
|
// VideoJS.setup();
|
|
|
|
// })
|
2010-06-09 11:41:52 +03:00
|
|
|
|
2010-06-03 08:08:04 +03:00
|
|
|
// If using Prototype
|
|
|
|
// document.observe("dom:loaded", function() {
|
|
|
|
// VideoJS.setup();
|
|
|
|
// });
|
2010-06-09 11:41:52 +03:00
|
|
|
|
2010-06-03 08:08:04 +03:00
|
|
|
// If not using a JS library
|
2010-05-21 19:50:51 +03:00
|
|
|
window.onload = function(){
|
|
|
|
VideoJS.setup();
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
2010-06-03 08:08:04 +03:00
|
|
|
<!-- Include the VideoJS Stylesheet -->
|
2010-05-21 19:50:51 +03:00
|
|
|
<link rel="stylesheet" href="video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
|
|
|
|
</head>
|
2010-06-03 08:08:04 +03:00
|
|
|
<body>
|
2010-06-09 11:41:52 +03:00
|
|
|
|
2010-06-03 08:08:04 +03:00
|
|
|
<!-- Begin VideoJS -->
|
2010-05-27 22:00:17 +03:00
|
|
|
<div class="video-js-box">
|
2010-06-03 08:08:04 +03:00
|
|
|
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
|
2010-06-13 04:04:11 +03:00
|
|
|
<video class="video-js" width="640" height="264" poster="http://video-js.zencoder.com/oceans-clip.png" controls preload>
|
|
|
|
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
|
|
|
|
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm; codecs="vp8, vorbis"'>
|
|
|
|
<source src="http://video-js.zencoder.com/oceans-clip.ogg" type='video/ogg; codecs="theora, vorbis"'>
|
2010-06-15 19:33:27 +03:00
|
|
|
<object class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash"
|
2010-05-27 22:00:17 +03:00
|
|
|
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
|
|
|
|
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
|
|
|
|
<param name="allowfullscreen" value="true" />
|
2010-06-15 19:33:27 +03:00
|
|
|
<param name="flashvars" value='config={"clip":{"url":"http://video-js.zencoder.com/oceans-clip.mp4","autoPlay":false,"autoBuffering":true}}' />
|
2010-06-09 11:41:52 +03:00
|
|
|
<img src="http://video-js.zencoder.com/oceans-clip.png" width="640" height="264" alt="Poster Image"
|
2010-06-03 08:08:04 +03:00
|
|
|
title="No video playback capabilities." />
|
2010-05-27 22:00:17 +03:00
|
|
|
</object>
|
|
|
|
</video>
|
2010-06-03 08:08:04 +03:00
|
|
|
<p class="vjs-no-video"><strong>Download Video:</strong>
|
2010-06-09 11:41:52 +03:00
|
|
|
<a href="http://video-js.zencoder.com/oceans-clip.mp4">MP4</a>,
|
|
|
|
<a href="http://video-js.zencoder.com/oceans-clip.webm">WebM</a>,
|
|
|
|
<a href="http://video-js.zencoder.com/oceans-clip.ogg">Ogg</a><br>
|
2010-06-03 08:08:04 +03:00
|
|
|
<a href="http://videojs.com">HTML5 Video Player</a> by <a href="http://videojs.com">VideoJS</a>
|
|
|
|
</p>
|
2010-05-27 22:00:17 +03:00
|
|
|
</div>
|
2010-06-03 08:08:04 +03:00
|
|
|
<!-- End VideoJS -->
|
2010-06-09 11:41:52 +03:00
|
|
|
|
2010-05-21 19:50:51 +03:00
|
|
|
</body>
|
|
|
|
</html>
|