Created
June 19, 2017 05:30
-
-
Save sbalay/bd9dfb9000c7fa3a1f03fd9a63c81c63 to your computer and use it in GitHub Desktop.
Videojs example
This file contains hidden or 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> | |
<meta charset=utf-8 /> | |
<title>videojs-contrib-hls embed</title> | |
<!-- | |
Uses the latest versions of video.js and videojs-contrib-hls. | |
To use specific versions, please change the URLs to the form: | |
<link href="https://unpkg.com/[email protected]/dist/video-js.css" rel="stylesheet"> | |
<script src="https://unpkg.com/[email protected]/dist/video.js"></script> | |
<script src="https://unpkg.com/[email protected]/dist/videojs-contrib-hls.js"></script> | |
--> | |
<link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet"> | |
<script src="https://unpkg.com/video.js/dist/video.js"></script> | |
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script> | |
</head> | |
<body> | |
<h1>Video.js Example Embed</h1> | |
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="268" | |
data-setup='{}'> | |
<source src="https://li5-test.s3.amazonaws.com/pub/products/2017/04/03/4f28935d-d9df-42e6-ae35-63aaf1486a2d.m3u8" type="application/x-mpegURL"> | |
</video> | |
<script> | |
const a = videojs('my_video_1'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment