添加iframe监控

master
ihzero 2023-12-31 10:20:42 +08:00
parent f6f3e8197d
commit 0dbf8623f0
2 changed files with 69 additions and 62 deletions

View File

@ -1,6 +1,9 @@
<template>
<view class="h-full w-full">
<div ref="muiPlayer"></div>
<iframe class="w-full h-full" v-if="type=='iframe'" :src="url"></iframe>
<div ref="muiPlayer" v-else>
</div>
</view>
</template>
<script>
@ -23,6 +26,9 @@ export default {
},
methods: {
videoPlayer() {
if (this.type == 'iframe') {
console.log("=====");
} else {
let parse = {}
if (this.type == 'm3u8') {
parse = {
@ -51,7 +57,7 @@ export default {
pageHead: false,
width: '100%',
height: '100%',
autoFit:false,
autoFit: false,
objectFit: 'contain',
videoAttribute: [
{
@ -90,6 +96,7 @@ export default {
})
})
})
}
},
},
}

View File

@ -1,5 +1,5 @@
<template>
<view>
<view class="h-full w-full">
<LiveVideo
v-if="address"
:key="address"