You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.6 KiB
56 lines
1.6 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>video.js HLS Plugin Example</title>
|
|
|
|
<link href="node_modules/video.js/dist/video-js/video-js.css" rel="stylesheet">
|
|
|
|
<!-- video.js -->
|
|
<script src="node_modules/video.js/dist/video-js/video.js"></script>
|
|
|
|
<!-- Media Sources plugin -->
|
|
<script src="node_modules/videojs-media-sources/videojs-media-sources.js"></script>
|
|
|
|
<!-- HLS plugin -->
|
|
<script src="src/videojs-hls.js"></script>
|
|
|
|
<!-- segment handling -->
|
|
<script src="src/flv-tag.js"></script>
|
|
<script src="src/exp-golomb.js"></script>
|
|
<script src="src/h264-stream.js"></script>
|
|
<script src="src/aac-stream.js"></script>
|
|
<script src="src/segment-parser.js"></script>
|
|
<script src="src/segment-controller.js"></script>
|
|
|
|
<!-- m3u8 handling -->
|
|
<script src="src/stream.js"></script>
|
|
<script src="src/m3u8/m3u8-parser.js"></script>
|
|
<script src="src/manifest-controller.js"></script>
|
|
<script src="src/segment-controller.js"></script>
|
|
<script src="src/hls-playback-controller.js"></script>
|
|
|
|
<!-- example MPEG2-TS segments -->
|
|
<!-- bipbop -->
|
|
<!-- <script src="test/tsSegment.js"></script> -->
|
|
<!-- bunnies -->
|
|
<script src="test/tsSegment-bc.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<video id="video"
|
|
class="video-js vjs-default-skin"
|
|
height="300"
|
|
width="600"
|
|
controls>
|
|
</video>
|
|
<script>
|
|
videojs.options.flash.swf = 'node_modules/video.js/dist/video-js/video-js.swf';
|
|
// initialize the player
|
|
var player = videojs('video');
|
|
|
|
// load the master playlist
|
|
player.hls('test/fixtures/prog_index.m3u8');
|
|
</script>
|
|
</body>
|
|
</html>
|