web页面集成
This commit is contained in:
@@ -35,17 +35,6 @@ sip:
|
||||
id: 34020000002000000001
|
||||
# 默认设备认证密码,后续扩展使用设备单独密码
|
||||
password: 12345678
|
||||
media:
|
||||
# ip: 10.200.64.88
|
||||
ip: 192.168.1.20
|
||||
port: 10000
|
||||
|
||||
# 自定义代理相关配置
|
||||
# 代理的本地路由
|
||||
proxy:
|
||||
servlet_url: /media/*
|
||||
# 要代理的地址
|
||||
target_url: http://127.0.0.1:10080
|
||||
|
||||
auth: #32位小写md5加密(默认密码为admin)
|
||||
username: admin
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<cross-domain-policy>
|
||||
<allow-access-from domain="*"/>
|
||||
</cross-domain-policy>
|
||||
File diff suppressed because one or more lines are too long
BIN
src/main/resources/static/dist/liveplayer.swf
vendored
BIN
src/main/resources/static/dist/liveplayer.swf
vendored
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
@@ -1 +0,0 @@
|
||||
<!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"><link rel=icon href=/favicon.ico><title>default</title><script src=./dist/liveplayer-lib.min.js></script><link href=/css/app.ea73b2a1.css rel=preload as=style><link href=/css/chunk-vendors.b5921ce8.css rel=preload as=style><link href=/js/app.d31a42f9.js rel=preload as=script><link href=/js/chunk-vendors.21c802f5.js rel=preload as=script><link href=/css/chunk-vendors.b5921ce8.css rel=stylesheet><link href=/css/app.ea73b2a1.css rel=stylesheet></head><body><noscript><strong>We're sorry but default doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.21c802f5.js></script><script src=/js/app.d31a42f9.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<cross-domain-policy>
|
||||
<allow-access-from domain="*"/>
|
||||
</cross-domain-policy>
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1,63 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>liveplayer</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
|
||||
<script type="text/javascript" src="liveplayer-element.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
|
||||
}
|
||||
|
||||
window.addEventListener("message", function(event) {
|
||||
var data = event.data;
|
||||
switch (data.cmd) {
|
||||
case 'switchUrl':
|
||||
// 处理业务逻辑
|
||||
console.log("收到消息:"+JSON.stringify(data.params));
|
||||
var player = document.getElementById('player01');
|
||||
player.setAttribute("video-url",data.params["path"]);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
function getQueryVariable(variable) {
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split("&");
|
||||
for (var i = 0; i < vars.length; i++) {
|
||||
var pair = vars[i].split("=");
|
||||
if (pair[0] == variable) {
|
||||
return pair[1];
|
||||
}
|
||||
}
|
||||
return (false);
|
||||
}
|
||||
|
||||
function onError(event){
|
||||
console.log("播放器错误:"+JSON.stringify(event));
|
||||
}
|
||||
|
||||
function sendMsgToParent(cmd,data){
|
||||
window.parent.postMessage({
|
||||
cmd: cmd,
|
||||
params: {
|
||||
success: true,
|
||||
data: data
|
||||
}
|
||||
}, '*');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<live-player id="player01" live="true" stretch="true" show-custom-button="false" autoplay error="onError">
|
||||
</live-player>
|
||||
<script>
|
||||
var videoPath = getQueryVariable("url");
|
||||
console.log('播放地址:' + videoPath);
|
||||
var player = document.getElementById('player01');
|
||||
player.setAttribute("video-url", videoPath);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user