pc hls playback based on video.js
<html>
<head>
<link rel="stylesheet" href="/dist/hls.css">
</head>
<body>
<video id="my-video" class="video-js vjs-default-skin" width="640" height="360"></video>
<script src="./dist/video.js"></script>
<!--[if (gt IE 9) & (!IE)]>-->
<script src="./dist/hls.js"></script>
<!--<![endif]-->
<script>
var player = hls('my-video', {
src: 'http://xxx.m3u8'
});
</script>
</body>
</html>
- build
npm install
gulp build
- run
gulp server
- watch demo
(http://localhost:3000/example.html)[http://localhost:3000/example.html]
- no 4 step :)