diff --git a/projects/Platform/wwwroot/components/devices/camera.vue b/projects/Platform/wwwroot/components/devices/camera.vue index 7edb3470..ff84ed68 100644 --- a/projects/Platform/wwwroot/components/devices/camera.vue +++ b/projects/Platform/wwwroot/components/devices/camera.vue @@ -124,7 +124,6 @@ this.flvPlayer.muted = this.muted; var vm = this; this.timer = setInterval(function () { - console.log('.'); if (vm.flvPlayer.statisticsInfo.speed === 0) { console.log('reload1'); clearInterval(vm.timer); @@ -135,12 +134,12 @@ clearInterval(vm.timer); vm.playByFlvJs(); } - else if (vm.flvPlayer.buffered.length > 0 && vm.flvPlayer.buffered.end(0) - vm.flvPlayer.currentTime > 2) { + else if (vm.flvPlayer.buffered.length > 0 && vm.flvPlayer.buffered.end(0) - vm.flvPlayer.currentTime > 5) { console.log('reset currentTime'); vm.flvPlayer.currentTime = vm.flvPlayer.buffered.end(0) - 0.001; } vm.decodedFrames = vm.flvPlayer.statisticsInfo.decodedFrames; - }, 30 * 1000); + }, 10 * 1000); } catch (e) { console.log('error:'); console.log(e); diff --git a/projects/Platform/wwwroot/components/devices/lamp.vue b/projects/Platform/wwwroot/components/devices/lamp.vue index 7cff4fff..6ab9c60f 100644 --- a/projects/Platform/wwwroot/components/devices/lamp.vue +++ b/projects/Platform/wwwroot/components/devices/lamp.vue @@ -83,7 +83,6 @@ color: function () { var h = Math.round(parseInt(this.hue || 128) * 360 / 255); var result = 'hsl(' + h + ',100%,50%)'; - console.log('color:' + result); return result; }, hsl: function () { @@ -91,8 +90,6 @@ var s = Math.round(parseInt(this.saturation || 128) * 100 / 254); var l = Math.round(parseInt(this.brightness || 128) * 100 / 254); var result = 'hsl(' + h + ',' + s + '%,' + l + '%)'; - console.warn('raw:'+this.hue+' '+this.saturation+' '+this.brightness); - console.warn('hsl:' + result); return result; }, color: function () {