mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Shinobi CE officially lands on Gitlab
This commit is contained in:
commit
f1406d4eec
431 changed files with 118157 additions and 0 deletions
29
tools/MP4 Stream/index.html
Normal file
29
tools/MP4 Stream/index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!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/flv.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<video controls id="videoElement"></video>
|
||||
<script>
|
||||
if (flvjs.isSupported()) {
|
||||
var videoElement = document.getElementById('videoElement');
|
||||
var flvPlayer = flvjs.createPlayer({
|
||||
type: 'mp4',
|
||||
isLive: true,
|
||||
url: '/s.mp4'
|
||||
});
|
||||
flvPlayer.attachMediaElement(videoElement);
|
||||
flvPlayer.on('error',function(err){
|
||||
console.log(err)
|
||||
});
|
||||
flvPlayer.load();
|
||||
flvPlayer.play();
|
||||
}
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue