修改直播
parent
447675f580
commit
a15069b782
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view class="h-full w-full">
|
||||
<div ref="muiPlayer" style="width: 100%; height: 100%"></div>
|
||||
<div ref="muiPlayer"></div>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
|
|
@ -48,7 +48,11 @@ export default {
|
|||
autoplay: true,
|
||||
muted: true,
|
||||
parse: parse,
|
||||
pageHead:false,
|
||||
pageHead: false,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
autoFit:false,
|
||||
objectFit: 'contain',
|
||||
videoAttribute: [
|
||||
{
|
||||
attrKey: 'webkit-playsinline',
|
||||
|
|
@ -71,9 +75,10 @@ export default {
|
|||
],
|
||||
},
|
||||
})
|
||||
let _video = this.mp.video()
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.mp.on('ready', (event) => {
|
||||
let _video = this.mp.video()
|
||||
_video.play()
|
||||
_video.addEventListener('play', (e) => {
|
||||
//播放事件
|
||||
|
|
@ -89,6 +94,4 @@ export default {
|
|||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
<style lang="scss"></style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue