开发安卓App时,使用webview时打开一个公众号文章链接时,真机调试的时候,公众号文章中的视频无法全屏展示,并且点击全屏时会控制台会报错。
本人使用的安卓系统是12.0的,但是在7.0版本也会有这样的问题,小程序上就没问题。
<template>
<view class="container">
<!--webview 放到顶部,通过定位到党网联盟占位的地方,在其之前的代码要被压上 -->
<web-view src="https://mp.weixin.qq.com/s/3lQjCtYtu_JsCz9rQyjYDA"></web-view>
</view>
<!-- <iframe :src="src" frameborder="0"></iframe> -->
</template>
<script>
import environments from '@/environments/index.js'
export default {
data() {
return {
src: ''
}
},
onLoad(option) {
this.src = decodeURIComponent(option.url)
console.log(this.src)
},
onBackPress(options) {
},
methods: {
}
}
</script>
<style>
</style>