<template>
<view class="content">
<web-view ref="muiPlayer" class="muiPlayer" :src="src"></web-view>
</view>
</template>
<script>
export default {
name: "muiPlayer",
data() {
return {
src: "../../hybrid/html/local.html",
};
},
onReady() {
plus.webview.currentWebview().addEventListener('fullscreenchange', function(e) {
if (e.fullscreen) {
console.log('全屏');
} else {
console.log('退出全屏');
}
});
},
methods: {}
}
</script>
<style>
.muiPlayer {
width: 750rpx;
height: 210px;
}
</style>