<template>  
    <view>  
                <!-- <view class="goback" @tap="goback()">  
            <text class="font">上一页</text>  
        </view>-->  
    </view>  
</template>  
<script>  
    var wv, embed;  
    export default {  
        data() {  
            return {  
                web: '',  
                url: ''  
            }  
        },  
        onLoad(e) {  
            //this.url = e.url  
            this.url = 'https://www.bilibili.com/'  
            this.goUrl()  
        },  
        methods: {  
                        goback() {  
                embed.evalJS("javascript:history.back(-1)");  
            },  
            goUrl() {  
                wv = plus.webview.currentWebview();  
                embed = plus.webview.create(this.url, '', {  
                    top: '0px',  
                    bottom: '0px',  
                    videoFullscreen: 'landscape-primary'  
                });  
                wv.append(embed);  
            }  
        }  
    }  
</script>  
<style>  
</style> 
                                        
                                    
                                    
                                        2***@qq.com                                                                                
                                        
                                - 发布:2021-02-28 20:24
- 更新:2021-03-01 16:52
- 阅读:933
求助ios下webview里的视频怎么全屏?videoFullscreen: 'landscape-primary' 只对安卓有效
                                分类:HTML5+
                            
                            
                            
                            
                                                     
             
             
             
			 
            
1 个回复
1***@163.com - 菜鸟
ios需要在 manifest.josn文件 为APP设置可选方向 "orientation" : [ "portrait-primary", "landscape-primary" ],