sendRoomBinaryMessage method

FutureOr<int64_t> sendRoomBinaryMessage(
  1. NSData message
)

@detail api @brief Sends binary messages to all other users in the room. @param message
The binary broadcast message sent by the user
The message does not exceed 46KB. @return The number of the message sent this time is incremented from 1. @note
+ Before broadcasting binary messages in the room, you must call joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo} to join the room.
+ After calling this function, you will receive an rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error} callback to notify the sender of the success or failure of the message;
+ If the binary message is successfully sent, all users in the room will receive rtsRoom:onRoomBinaryMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomBinaryMessageReceived:message} callback.

Implementation

FutureOr<int64_t> sendRoomBinaryMessage(NSData message) async {
  return await nativeCall('sendRoomBinaryMessage:', [message]);
}