Basic instructions of the SDK

Introduction of SDK object

Class Introduction Function
XHClient  Management class Get the management object of each module and get the total number of online users and the list
XHCustomConfig Configuration class Set the initial configuration of the SDK. You can configure the address, user name, APPID, etc, and you also can set the audio and video codec related configuration
XHLoginManager Management class It is responsible for user login/exit SDK and monitoring user status and connection status
IXHLoginManagerListener Listener class You need to implement the interface, to monitor changes of the user status
XHChatManager Management class It is responsible for sending and receiving one-to-one text messages
IXHChatManagerListener Listener class You need to implement the interface, to receive new messages
XHGroupManager Management class It is responsible for creating/deleting groups, adding/removing group members, receiving/sending group text messages, setting muting notifications of group message etc.
IXHGroupManagerListener Listener class You need to implement the interface, to receive group messages, as well as group status notifications
XHVoipManager Management class It is responsible for VOIP call/answer/hang up operations
IXHVoipManagerListener Listener class You need to implement the interface, to receive the various states during a call
XHLiveManager Management class It is responsible for creating live broadcast / starting live broadcast / watching live broadcast / stopping live broadcast, banning / kicking out the users in the live broadcast room, even reviewing the permission to turn on the microphone, inviting / stopping the anchor broadcast and other operations
IXHLiveManagerListener Listener class You need to implement the interface, to receive text messages / anchor status changes / related notes, etc.
XHMeetingManager Management class It is responsible for creating meetings / joining meetings / exiting meetings, forbidding / kicking out participants, etc.
IXHMeetingManagerListener Listener class You need to implement the interface yourself, to receive the text message / attendee’s entry and exit status / own status, etc.
XHConstants Tool class A collection of constants used in the SDK
IXHResultCallback Callback class Callback for some operations
XHIMMessage Message class The received messages are all objects of this class.
StarPlayer player It is used to render video images
StarWhitePanel WhitePanel It can do real-time handwriting transfer and drawing
StarWhitePanel2 WhitePanel2 It is the upgrading version, which supports stroke color, undo, laser pointer, picture, etc.
XHVideoSourceCallback Beauty callback class You can obtain the original video data by rewriting the onFrame method, and backfill the processed data by the backfillData method.
XHVideoSourceManager Beauty management class Set beauty callback class for sdk
XHSDKHelper Tool class Camera-related features such as previewing the screen, switching cameras