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