2***@qq.com
2***@qq.com
  • 发布:2021-02-28 20:24
  • 更新:2021-03-01 16:52
  • 阅读:697

求助ios下webview里的视频怎么全屏?videoFullscreen: 'landscape-primary' 只对安卓有效

分类:HTML5+
<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>
2021-02-28 20:24 负责人:无 分享
已邀请:
1***@163.com

1***@163.com - 菜鸟

ios需要在 manifest.josn文件 为APP设置可选方向 "orientation" : [ "portrait-primary", "landscape-primary" ],

该问题目前已经被锁定, 无法添加新回复