Skip to content

Instantly share code, notes, and snippets.

@lieldulev
Created September 17, 2012 17:37
Show Gist options
  • Save lieldulev/3738681 to your computer and use it in GitHub Desktop.
Save lieldulev/3738681 to your computer and use it in GitHub Desktop.
HLS with videojs
<!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>
@subhanisk532
Copy link

subhanisk532 commented Nov 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment