factory/apps/monitor/templates/monitor/video.html

29 lines
693 B
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>videojs-contrib-hls embed</title>
<script src="https://cdn.bootcdn.net/ajax/libs/flv.js/1.6.2/flv.js"></script>
</head>
<body>
<h1>Video.js Example Embed</h1>
<video id="videoElement" muted="muted"></video>
<script>
if (flvjs.isSupported()) {
var videoElement = document.getElementById('videoElement');
var flvPlayer = flvjs.createPlayer({
type: 'flv',
url: 'http://10.0.11.21:7886/live/cameraid/1000038%240/substream/2.flv'
});
flvPlayer.attachMediaElement(videoElement);
flvPlayer.load();
flvPlayer.play();
}
</script>
</body>
</html>