添加静态页
This commit is contained in:
parent
fc901e8c65
commit
764daa8a36
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||||
|
</state>
|
||||||
|
</component>
|
19
.idea/dataSources.xml
Normal file
19
.idea/dataSources.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
|
<data-source source="LOCAL" name="192.168.1.141" uuid="b55ce2b3-e282-488f-871b-1dd3cf1f116d">
|
||||||
|
<driver-ref>mysql.8</driver-ref>
|
||||||
|
<synchronize>true</synchronize>
|
||||||
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||||
|
<jdbc-url>jdbc:mysql://192.168.1.141:3306</jdbc-url>
|
||||||
|
<driver-properties>
|
||||||
|
<property name="autoReconnect" value="true" />
|
||||||
|
<property name="zeroDateTimeBehavior" value="CONVERT_TO_NULL" />
|
||||||
|
<property name="tinyInt1isBit" value="false" />
|
||||||
|
<property name="characterEncoding" value="utf8" />
|
||||||
|
<property name="characterSetResults" value="utf8" />
|
||||||
|
<property name="yearIsDateType" value="false" />
|
||||||
|
</driver-properties>
|
||||||
|
</data-source>
|
||||||
|
</component>
|
||||||
|
</project>
|
7
.idea/encodings.xml
Normal file
7
.idea/encodings.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
20
.idea/jarRepositories.xml
Normal file
20
.idea/jarRepositories.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="RemoteRepositoriesConfiguration">
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Central Repository" />
|
||||||
|
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Maven Central repository" />
|
||||||
|
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="jboss.community" />
|
||||||
|
<option name="name" value="JBoss Community repository" />
|
||||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||||
|
</remote-repository>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -5,21 +5,21 @@ spring:
|
|||||||
database: redis
|
database: redis
|
||||||
# 通信方式,支持kafka、http
|
# 通信方式,支持kafka、http
|
||||||
communicate: http
|
communicate: http
|
||||||
redis:
|
redis:
|
||||||
# Redis服务器IP
|
# Redis服务器IP
|
||||||
host: 192.168.1.141
|
host: 192.168.1.141
|
||||||
#端口号
|
#端口号
|
||||||
port: 6379
|
port: 6379
|
||||||
database: 6
|
database: 6
|
||||||
#访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
#访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
|
||||||
password: 4767cb971b40a1300fa09b7f87b09d1c
|
password:
|
||||||
#超时时间
|
#超时时间
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
datasource:
|
datasource:
|
||||||
name: eiot
|
name: eiot
|
||||||
url: jdbc:mysql://192.168.1.141:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
|
url: jdbc:mysql://192.168.1.141:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
|
||||||
username: root
|
username:
|
||||||
password: root
|
password:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
server:
|
server:
|
||||||
|
1
src/main/resources/static/css/app.ea73b2a1.css
Normal file
1
src/main/resources/static/css/app.ea73b2a1.css
Normal file
File diff suppressed because one or more lines are too long
1
src/main/resources/static/css/chunk-vendors.b5921ce8.css
Normal file
1
src/main/resources/static/css/chunk-vendors.b5921ce8.css
Normal file
File diff suppressed because one or more lines are too long
4
src/main/resources/static/dist/crossdomain.xml
vendored
Normal file
4
src/main/resources/static/dist/crossdomain.xml
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<cross-domain-policy>
|
||||||
|
<allow-access-from domain="*"/>
|
||||||
|
</cross-domain-policy>
|
1
src/main/resources/static/dist/liveplayer-lib.min.js
vendored
Normal file
1
src/main/resources/static/dist/liveplayer-lib.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
src/main/resources/static/dist/liveplayer.swf
vendored
Normal file
BIN
src/main/resources/static/dist/liveplayer.swf
vendored
Normal file
Binary file not shown.
BIN
src/main/resources/static/favicon.ico
Normal file
BIN
src/main/resources/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
src/main/resources/static/fonts/element-icons.535877f5.woff
Normal file
BIN
src/main/resources/static/fonts/element-icons.535877f5.woff
Normal file
Binary file not shown.
BIN
src/main/resources/static/fonts/element-icons.732389de.ttf
Normal file
BIN
src/main/resources/static/fonts/element-icons.732389de.ttf
Normal file
Binary file not shown.
BIN
src/main/resources/static/img/icons.d15a79ee.png
Normal file
BIN
src/main/resources/static/img/icons.d15a79ee.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
1
src/main/resources/static/index.html
Normal file
1
src/main/resources/static/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!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>
|
2
src/main/resources/static/js/app.d31a42f9.js
Normal file
2
src/main/resources/static/js/app.d31a42f9.js
Normal file
File diff suppressed because one or more lines are too long
1
src/main/resources/static/js/app.d31a42f9.js.map
Normal file
1
src/main/resources/static/js/app.d31a42f9.js.map
Normal file
File diff suppressed because one or more lines are too long
42
src/main/resources/static/js/chunk-vendors.21c802f5.js
Normal file
42
src/main/resources/static/js/chunk-vendors.21c802f5.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
src/main/resources/static/video/crossdomain.xml
Normal file
4
src/main/resources/static/video/crossdomain.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<cross-domain-policy>
|
||||||
|
<allow-access-from domain="*"/>
|
||||||
|
</cross-domain-policy>
|
1
src/main/resources/static/video/liveplayer-element.min.js
vendored
Normal file
1
src/main/resources/static/video/liveplayer-element.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
src/main/resources/static/video/liveplayer.swf
Normal file
BIN
src/main/resources/static/video/liveplayer.swf
Normal file
Binary file not shown.
63
src/main/resources/static/video/video.html
Normal file
63
src/main/resources/static/video/video.html
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<!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>
|
Loading…
Reference in New Issue
Block a user