Skip to content

Instantly share code, notes, and snippets.

@wisicn
Created February 19, 2013 07:11
Show Gist options
  • Save wisicn/4983715 to your computer and use it in GitHub Desktop.
Save wisicn/4983715 to your computer and use it in GitHub Desktop.
another video.js demo html from original source code repository, add the m3u8 sample
<!DOCTYPE html>
<html>
<head>
<title>Video.js | HTML5 Video Player</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>
_V_.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="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup="{}">
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
<source src="content/file1/file.m3u8" type='application/vnd.apple.mpegurl' />
<track kind="captions" src="captions.vtt" srclang="en" label="English" />
</video>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment