diff --git a/web/src/views/common/jessibuca.vue b/web/src/views/common/jessibuca.vue index db56377e0..9d283d45b 100755 --- a/web/src/views/common/jessibuca.vue +++ b/web/src/views/common/jessibuca.vue @@ -273,6 +273,11 @@ export default { }, setPlaybackRate: function() { + }, + resize(width, height) { + if (jessibucaPlayer[this._uid]) { + jessibucaPlayer[this._uid].resize() + } } } } diff --git a/web/src/views/device/channel/record.vue b/web/src/views/device/channel/record.vue index 8aba21a26..32ea17cbd 100755 --- a/web/src/views/device/channel/record.vue +++ b/web/src/views/device/channel/record.vue @@ -50,7 +50,10 @@
-
+
-
+
+
{{ showTimeValue }}
-
{{ showTimeValue }}
-
-
- -
-
- - - - - - - - - - +
+
+
{{ playSpeed }}X - - {{ item }}X - - - -
-
-
-
- + class="record-play-control-item iconfont icon-list" + title="列表" + @click="sidebarControl()" + /> {{ playerLabel }} - - Jessibuca - WebRTC - H265Web - - - - + class="record-play-control-item iconfont icon-camera1196054easyiconnet" + title="截图" + @click="snap()" + /> + + +
+
+ +
+
+ + {{ playerLabel }} + + Jessibuca + WebRTC + H265Web + + + + +
@@ -444,8 +451,10 @@ export default { const playerHeight = this.$refs.recordVideoPlayer.playerHeight screenfull.request(document.getElementById('playerBox')) screenfull.on('change', (event) => { - this.$refs.recordVideoPlayer.resize(playerWidth, playerHeight) this.isFullScreen = screenfull.isFullscreen + if (this.$refs.recordVideoPlayer && this.$refs.recordVideoPlayer.resize) { + this.$refs.recordVideoPlayer.resize(playerWidth, playerHeight) + } }) this.isFullScreen = true }, @@ -674,14 +683,31 @@ export default { } .player-option-box { - height: 50px + height: 95px; +} + +.player-option-box-bottom { + width: 100%; + position: absolute; + bottom: 0; } .time-line-show { position: relative; color: rgba(250, 249, 249, 0.89); - left: calc(50% - 85px); - top: -72px; + top: -24px; + height: 0; + width: stretch; + float: left; + text-align: center; text-shadow: 1px 0 #5f6b7c, -1px 0 #5f6b7c, 0 1px #5f6b7c, 0 -1px #5f6b7c, 1.1px 1.1px #5f6b7c, 1.1px -1.1px #5f6b7c, -1.1px 1.1px #5f6b7c, -1.1px -1.1px #5f6b7c; } +.play-box { + width: 100%; aspect-ratio: 16 / 9; + background-color: #000000; + height: calc(100vh - 220px); +} +.play-box-fullscreen { + height: 100vh !important; +}