迁移大屏UI库和应用
This commit is contained in:
72
project/dvui/components/AiMonitor/tms/index.html
Normal file
72
project/dvui/components/AiMonitor/tms/index.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<script src="index.js"></script>
|
||||
|
||||
<script>
|
||||
var search = document.location.search
|
||||
|
||||
if (!search && search.split('url=').length < 2) {
|
||||
|
||||
} else {
|
||||
var url = search.split('url=')[1]
|
||||
var player = new window.Jessibuca({
|
||||
container: document.getElementById("container"),
|
||||
decoder: "./index.js",
|
||||
isResize: false,
|
||||
supportDblclickFullscreen: true,
|
||||
forceNoOffscreen: true,
|
||||
keepScreenOn: true,
|
||||
isNotMute: true,
|
||||
loadingText: '加载中...',
|
||||
operateBtns: {
|
||||
fullscreen: true,
|
||||
screenshot: true,
|
||||
play: true,
|
||||
audio: true,
|
||||
record: true
|
||||
}
|
||||
});
|
||||
|
||||
if (player.hasLoaded()) {
|
||||
player.play(url)
|
||||
} else {
|
||||
player.on('load', function () {
|
||||
player.play(url)
|
||||
})
|
||||
}
|
||||
|
||||
player.on('fullscreen', function (e) {
|
||||
window.parent.postMessage(e, '*')
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user