From 708e3cd306ce1f7091e02615ed3fb3c219b1b434 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Thu, 6 Feb 2020 20:56:23 +0800 Subject: [PATCH] update Former-commit-id: 1a6c29338bfacbe85433f4c8e1f2c5440cc03066 --- projects/WebApp/wwwroot/css/app.css | 23 ++ projects/WebApp/wwwroot/js/iot.js | 10 +- .../wwwroot/pages/iot/device/camera.html | 237 ++++++++++++++---- 3 files changed, 217 insertions(+), 53 deletions(-) diff --git a/projects/WebApp/wwwroot/css/app.css b/projects/WebApp/wwwroot/css/app.css index 7ffe9598..48ab54ab 100644 --- a/projects/WebApp/wwwroot/css/app.css +++ b/projects/WebApp/wwwroot/css/app.css @@ -114,3 +114,26 @@ img { .card .weui-bar__item_on { background-color: #eee; } +.wxinlineplayer + div { + position:absolute; + height:30px; + left:0; + right:0; + bottom:0; + background-color:#333; + display: none; +} +.wxinlineplayer:hover+div{ + display:block; +} +.wxinlineplayer + div:hover { + display: block; +} +.control input[type='range']::-webkit-slider-thumb { + -webkit-appearance: none; + background-color: transparent; + height: 12px; + width: 12px; + border: 6px solid rgba(230,230,230,0.8); + border-radius: 50%; +} \ No newline at end of file diff --git a/projects/WebApp/wwwroot/js/iot.js b/projects/WebApp/wwwroot/js/iot.js index c46795f5..2dbf25a4 100644 --- a/projects/WebApp/wwwroot/js/iot.js +++ b/projects/WebApp/wwwroot/js/iot.js @@ -1,8 +1,10 @@ var time = '1d'; -var timer; -var decodedFrames; -var muted = true; -var volume = 0.5; +if (WXInlinePlayer.isSupport()) { + WXInlinePlayer.init({ + asmUrl: '/lib/WXInlinePlayer/prod.all.asm.combine.js', + wasmUrl: '/lib/WXInlinePlayer/prod.all.wasm.combine.js' + }); +} function getDeviceDataValue(device, name) { var data = Enumerable.from(device.data).where(o => o.name === name).firstOrDefault(); if (data) { diff --git a/projects/WebApp/wwwroot/pages/iot/device/camera.html b/projects/WebApp/wwwroot/pages/iot/device/camera.html index a7f45a92..708b68db 100644 --- a/projects/WebApp/wwwroot/pages/iot/device/camera.html +++ b/projects/WebApp/wwwroot/pages/iot/device/camera.html @@ -4,23 +4,39 @@ {{device.displayName}}
-
- - +
+ + +
+ + + + + +
-
- +
+
- - - - - + + + + + @@ -34,62 +50,185 @@