docker-nginx-rtmp/player.html

23 lines
719 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!</ΓΌ>
<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>