mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
36 lines
No EOL
1.1 KiB
HTML
36 lines
No EOL
1.1 KiB
HTML
<!doctype html>
|
|
<!--www.shinobi.video-->
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta charset="UTF-8">
|
|
<title>FLV to Web Test by Shinobi Systems</title>
|
|
<!--FLV Live Player-->
|
|
<script src="http://cdn.shinobi.video/js/socket.io.js"></script>
|
|
<script src="http://cdn.shinobi.video/js/flv.socket.io.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// var socket = io.connect('/');
|
|
// socket.on('data', function (data) {
|
|
// });
|
|
</script>
|
|
<video controls id="videoElement"></video>
|
|
<script>
|
|
if (flvjs.isSupported()) {
|
|
var videoElement = document.getElementById('videoElement');
|
|
var flvPlayer = flvjs.createPlayer({
|
|
type: 'flv',
|
|
"isLive": true,
|
|
"handlerKey": 'flvData',
|
|
url: 'ws://'+location.host
|
|
});
|
|
flvPlayer.attachMediaElement(videoElement);
|
|
flvPlayer.on('error',function(err){
|
|
console.log(err)
|
|
});
|
|
flvPlayer.load();
|
|
flvPlayer.play();
|
|
}
|
|
</script>
|
|
</body> |