Browse Source

添加静态页

pull/1/head
648540858 4 years ago
parent
commit
764daa8a36
  1. 5
      .idea/codeStyles/codeStyleConfig.xml
  2. 19
      .idea/dataSources.xml
  3. 7
      .idea/encodings.xml
  4. 20
      .idea/jarRepositories.xml
  5. 8
      src/main/resources/application.yml
  6. 1
      src/main/resources/static/css/app.ea73b2a1.css
  7. 1
      src/main/resources/static/css/chunk-vendors.b5921ce8.css
  8. 4
      src/main/resources/static/dist/crossdomain.xml
  9. 1
      src/main/resources/static/dist/liveplayer-lib.min.js
  10. BIN
      src/main/resources/static/dist/liveplayer.swf
  11. BIN
      src/main/resources/static/favicon.ico
  12. BIN
      src/main/resources/static/fonts/element-icons.535877f5.woff
  13. BIN
      src/main/resources/static/fonts/element-icons.732389de.ttf
  14. BIN
      src/main/resources/static/img/icons.d15a79ee.png
  15. 1
      src/main/resources/static/index.html
  16. 2
      src/main/resources/static/js/app.d31a42f9.js
  17. 1
      src/main/resources/static/js/app.d31a42f9.js.map
  18. 42
      src/main/resources/static/js/chunk-vendors.21c802f5.js
  19. 1
      src/main/resources/static/js/chunk-vendors.21c802f5.js.map
  20. 4
      src/main/resources/static/video/crossdomain.xml
  21. 1
      src/main/resources/static/video/liveplayer-element.min.js
  22. BIN
      src/main/resources/static/video/liveplayer.swf
  23. 63
      src/main/resources/static/video/video.html

5
.idea/codeStyles/codeStyleConfig.xml

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

19
.idea/dataSources.xml

@ -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

@ -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

@ -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>

8
src/main/resources/application.yml

@ -5,21 +5,21 @@ spring:
database: redis
# 通信方式,支持kafka、http
communicate: http
redis:
redis:
# Redis服务器IP
host: 192.168.1.141
#端口号
port: 6379
database: 6
#访问密码,若你的redis服务器没有设置密码,就不需要用密码去连接
password: 4767cb971b40a1300fa09b7f87b09d1c
password:
#超时时间
timeout: 10000
datasource:
name: eiot
url: jdbc:mysql://192.168.1.141:3306/eiot?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true
username: root
password: root
username:
password:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
server:

1
src/main/resources/static/css/app.ea73b2a1.css

File diff suppressed because one or more lines are too long

1
src/main/resources/static/css/chunk-vendors.b5921ce8.css

File diff suppressed because one or more lines are too long

4
src/main/resources/static/dist/crossdomain.xml

@ -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

File diff suppressed because one or more lines are too long

BIN
src/main/resources/static/dist/liveplayer.swf

Binary file not shown.

BIN
src/main/resources/static/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
src/main/resources/static/fonts/element-icons.535877f5.woff

Binary file not shown.

BIN
src/main/resources/static/fonts/element-icons.732389de.ttf

Binary file not shown.

BIN
src/main/resources/static/img/icons.d15a79ee.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

1
src/main/resources/static/index.html

@ -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

File diff suppressed because one or more lines are too long

1
src/main/resources/static/js/app.d31a42f9.js.map

File diff suppressed because one or more lines are too long

42
src/main/resources/static/js/chunk-vendors.21c802f5.js

File diff suppressed because one or more lines are too long

1
src/main/resources/static/js/chunk-vendors.21c802f5.js.map

File diff suppressed because one or more lines are too long

4
src/main/resources/static/video/crossdomain.xml

@ -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

File diff suppressed because one or more lines are too long

BIN
src/main/resources/static/video/liveplayer.swf

Binary file not shown.

63
src/main/resources/static/video/video.html

@ -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…
Cancel
Save