Overview of TKPlaybackManager.h
TKPlaybackManager.h is the interface class file provided by the SDK for course playback functionality. It defines the main interfaces related to playback room calls, and the primary class is TKPlaybackManager. Below are the properties and methods defined in this class.
TKPlaybackManager Class
Property Names |
Property Description |
localUser |
Local User Object |
- Initialization and Registration Settings
Interface Name |
Interface Functionality |
instance |
Instantiate the SDK singleton object |
destory |
Destroy the SDK object |
setLogLevel |
Set the SDK log level |
initWithAppKey |
Initialize the SDK |
registerPlaybackManagerDelegate |
Set the playback room signaling callback delegate |
- Main interfaces for the playback room
Interface Name |
Interface Functionality |
joinPlaybackRoomWithHost |
Enter a normal room |
leaveRoom |
Leave the room |
getRoomProperty |
Get room-related properties |
getRoomUserWithUId |
Get the user object |
playVideo |
Play the video |
playAudio |
Play the audio |
unPlayVideo |
Stop playing the video |
unPlayAudio |
Stop playing the audio |
seekPlayback |
Set the playback progress |
pausePlayback |
Pause playback |
playback |
Start playback |
- Share and play media streams
Interface Name |
Interface Functionality |
playMediaFile |
Play the shared media stream |
unPlayMediaFile |
Stop playing the shared media stream |
pauseMediaFile |
Pause playing the shared media stream |
seekMediaFile |
Seek the shared media stream |
- Play desktop sharing and movie file streams
Interface Name |
Interface Functionality |
playScreen |
Play the desktop sharing audio and video streams |
unPlayScreen |
Stop playing the desktop sharing audio and video streams |
playFile |
Play the shared movie file stream |
unPlayFile |
Stop playing the shared movie file stream |