抖音开放平台Logo
开发者文档
“/”唤起搜索
控制台
  • JS API 列表
  • 基础
  • TTML
  • 网络
  • 媒体
  • 图片
  • 录音
  • 音频
  • 视频
  • tt.chooseVideo
  • tt.saveVideoToPhotosAlbum
  • tt.canIUseVideoFormat
  • tt.prerenderVideo
  • tt.preloadVideo
  • PreloadVideoTask
  • tt.chooseMedia
  • tt.createVideoContext
  • VideoContext
  • tt.createLivePlayerContext
  • LivePlayerContext
  • LivePlayerContext 概述
  • LivePlayerContext.play
  • LivePlayerContext.pause
  • LivePlayerContext.stop
  • LivePlayerContext.resume
  • LivePlayerContext.mute
  • LivePlayerContext.unmute
  • LivePlayerContext.requestFullScreen
  • LivePlayerContext.exitFullScreen
  • LivePlayerContext.setWaterMark
  • 相机
  • 特效相机
  • Canvas 录制
  • rtc-room 实时通信
  • 地图
  • 文件
  • 数据缓存
  • 地理位置
  • 设备
  • 画布
  • 界面
  • 页面导航
  • 开放接口
  • 行业开放
  • 第三方平台
  • 其它
  • 生活服务(即将废弃)
  • 小程序智能体
  • LivePlayerContext.requestFullScreen
    收藏
    我的收藏

    基础库 1.38.1 开始支持本方法,这是一个同步方法。

    进入全屏。

    前提条件
    业务背景
    使用限制
    注意事项
    支持沙盒
    相关教程

    语法

    LivePlayerContext.requestFullScreen(params)

    参数说明

    params 类型说明

    object 类型,属性如下:

    属性名类型默认值必填说明最低支持版本
    directionenum0
    用来控制进入全屏时画面朝向
    1.44.0

    direction 的合法值

    说明最低支持版本
    0
    正常竖向
    1.44.0
    90
    屏幕逆时针 90 度
    1.44.0
    -90
    屏幕顺时针 90 度
    1.44.0

    返回值

    扫码体验

    请使用字节宿主APP扫码

    代码示例