Video SDK for MacOS API Reference
|
The command channel allows users to send commands or data (such as plain text or a binary encoded into string) to other users in the same session. More...
#include <ZMVideoSDKCmdChannel.h>
Inherits NSObject.
Instance Methods | |
(ZMVideoSDKErrors) | - sendCommand:receiveUser: |
Send custom commands or data to other users in the current session. | |
The command channel allows users to send commands or data (such as plain text or a binary encoded into string) to other users in the same session.
Definition at line 16 of file ZMVideoSDKCmdChannel.h.
- (ZMVideoSDKErrors) sendCommand: | (NSString *) | commandContent | |
receiveUser: | (nullable ZMVideoSDKUser *) | user |
Send custom commands or data to other users in the current session.
commandContent | the custom commands or data, represented in string format. |
user | The target user to receive the command. If nil, the command is broadcast to all users. |
ZMVideoSDKErrors_Success
, otherwise failed.