视频回放

This commit is contained in:
yanran200730
2022-04-15 14:03:59 +08:00
parent 56c72397c1
commit 2aa6092938
3 changed files with 440 additions and 39 deletions

View File

@@ -16,10 +16,8 @@
class="videoBox"
v-for="(m, i) in monitors"
:key="m.id"
@mouseenter.stop="m.isShowPlayBtn = true"
@mouseleave.stop="m.isShowPlayBtn = false"
:style="currentSplitStyle">
<AiMonitor :src="m.url" type="slw" :name="m.name" @close="removeMonitor(i)"></AiMonitor>
<AiMonitor :src="m.url" type="slw" :name="m.name" @close="removeMonitor(i)" ref="AiMonitor"></AiMonitor>
</div>
</div>
</div>
@@ -116,6 +114,12 @@ export default {
if (e === 1 && this.monitors.length) {
this.monitors = [this.monitors[0]]
}
console.log(this.$refs.AiMonitor)
this.$refs.AiMonitor.forEach(e => {
e.reset()
})
},
removeMonitor(i) {
@@ -217,7 +221,7 @@ export default {
height: 100%;
.monitorPane {
color: #fff;
// color: #fff;
flex: 1;
min-width: 0;
padding: 20px 20px 20px 4px;