Created
September 17, 2012 17:37
-
-
Save lieldulev/3738681 to your computer and use it in GitHub Desktop.
HLS with videojs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet"> | |
<script src="http://vjs.zencdn.net/c/video.js"></script> | |
</head> | |
<body> | |
<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://server.name.tld/HLS/path.m3u8" type='application/vnd.apple.mpegurl'> | |
</video> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where do we define m3u8 file format ?
I am getting this error in console
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media. e {code: 4, message: "No compatible source was found for this media."}
can anyone help me out