added player demo

This commit is contained in:
Andreas Neue 2018-07-25 10:51:22 +02:00
parent daa54470d0
commit 3d7394d0c7
1 changed files with 22 additions and 0 deletions

22
player.html Normal file
View File

@ -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>