added player demo
This commit is contained in:
parent
daa54470d0
commit
3d7394d0c7
|
@ -0,0 +1,22 @@
|
|||
<html>
|
||||
<head>
|
||||
<link href="https://vjs.zencdn.net/5.7.1/video-js.css" rel="stylesheet">
|
||||
<script src="https://vjs.zencdn.net/5.7.1/video.js"></script>
|
||||
<script src="https://videojs.github.io/videojs-contrib-hls/node_modules/videojs-contrib-hls/dist/videojs.hls.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>Video? Video!</ü>
|
||||
|
||||
<video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
|
||||
<source src="http://localhost:8080/live/hello.m3u8" type="application/x-mpegURL">
|
||||
</video>
|
||||
|
||||
|
||||
<script>
|
||||
var player = videojs('autoplay');
|
||||
player.play();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue