添加iframe监控
parent
f6f3e8197d
commit
0dbf8623f0
|
|
@ -1,6 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="h-full w-full">
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -23,6 +26,9 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
videoPlayer() {
|
videoPlayer() {
|
||||||
|
if (this.type == 'iframe') {
|
||||||
|
console.log("=====");
|
||||||
|
} else {
|
||||||
let parse = {}
|
let parse = {}
|
||||||
if (this.type == 'm3u8') {
|
if (this.type == 'm3u8') {
|
||||||
parse = {
|
parse = {
|
||||||
|
|
@ -51,7 +57,7 @@ export default {
|
||||||
pageHead: false,
|
pageHead: false,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
autoFit:false,
|
autoFit: false,
|
||||||
objectFit: 'contain',
|
objectFit: 'contain',
|
||||||
videoAttribute: [
|
videoAttribute: [
|
||||||
{
|
{
|
||||||
|
|
@ -90,6 +96,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="h-full w-full">
|
||||||
<LiveVideo
|
<LiveVideo
|
||||||
v-if="address"
|
v-if="address"
|
||||||
:key="address"
|
:key="address"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue