VideoContext.exitFullScreen

解释:退出全屏

# 方法参数

# 示例

扫码体验
重新加载
请使用百度APP扫码

# 图片示例

# 代码示例

    <view class="wrap">
        <video id="myVideo" enable-danmu="true" src="https://b.bdstatic.com/miniapp/development_tool/Smartprogram.mp4"></video>
        <view class="text">设置5s内自动退出全屏</view>
    </view>
    
    Page({
        onLoad() {
            this.videoContext = swan.createVideoContext('myVideo');
            this.videoContext.play();
            this.videoContext.requestFullScreen({direction: 90});
            let that = this;
            setTimeout(function () {
                that.videoContext.exitFullScreen();
            }, 5000);
        }
    });