400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

TKPlaybackManager Overview

    TKPlayBackManager is an interface class provided by the SDK for course playback functionality, which defines the main interfaces related to playback room calls. The main class is TKPlayBackManager. Below are the properties and methods defined within this class.

    TKPlayBackManager
    • Initialization and Registration Setup
    Interface Name Interface Function
    getInstance Instantiate the SDK singleton object
    destroy Destroy the SDK object
    setLoggerInfo Set the SDK log level for printing
    init Initialize the SDK
    registerRoomObserver Set the playback room signaling callback delegate
    • IMain Playback Room Interface
    Interface Name Interface Function
    joinPlayBackRoom Enter a regular room
    leaveRoom Leave the room
    getRoomProperties Get room-related attributes
    getUser Get user object
    playVideo Play video
    playAudio Play audio
    unPlayVideo Stop playing video
    unPlayAudio Stop playing audio
    seekPlayback Set playback progress
    pausePlayback Pause playback
    resumePlayBack Resume playback
    • Share and Play Media Stream
    Interface Name Interface Function
    playMedia Play or pause shared media stream
    unPlayMedia Stop playing shared media stream
    • Play Desktop Sharing and Movie File Streams
    Interface Name Interface Function
    playScreen Play desktop sharing audio and video streams
    unPlayScreen Stop playing desktop sharing audio and video streams
    playFile Play shared movie file streams
    unPlayFile Stop playing shared movie file streams