抖音开放平台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 概述

    收藏
    我的收藏
    通过 tt.createLivePlayerContext 获取的实例。LivePlayerContext 通过 ID 与一个直播组件绑定,操作对应的 live-player 组件。

    属性

    方法

    方法名
    说明
    最低支持版本
    播放
    1.38.1
    暂停,效果同 stop
    1.38.1
    停止
    1.38.1
    继续播放,效果同 play
    1.38.1
    静音
    1.38.1
    取消静音
    1.38.1
    进入全屏
    1.38.1
    退出全屏
    1.38.1
    设置水印
    2.48.0

    代码示例