docker-nginx-rtmp/player.html

23 lines
726 B
HTML

<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!</p>
<video id=autoplay width="720" height="360" class="video-js vjs-default-skin vjs-big-play-centered" controls>
<source src="https//video.north-brigade.org/live/test.m3u8" type="application/x-mpegURL">
</video>
<script>
var player = videojs('autoplay');
player.play();
</script>
</body>
</html>