startBroadcasting abstract method
- String streamID
Start broadcasting real-time sequential data stream.
Available since: 2.14.0
Description: This function allows users to broadcast their local real-time sequential data stream to the ZEGO RTC server, and other users in the same room can subscribe to the real-time sequential data stream for intercommunication through "streamID".
Use cases: Before sending real-time sequential data, you need to call this function to start broadcasting.
When to call: After creating the ZegoRealTimeSequentialDataManager instance.
Restrictions: None.
Caution: After calling this function, you will receive the onPublisherStateUpdate
callback to tell you the broadcast state (publish state) of this stream. After the broadcast is successful, other users in the same room will receive the onRoomStreamUpdate
callback to tell them this stream has been added to the room.
streamID
Stream ID, a string of up to 256 characters. Caution:- Need to be globally unique within the entire AppID (Note that it cannot be the same as the stream ID passed in
startPublishingStream
). If in the same AppID, different users publish each stream and the stream ID is the same, which will cause the user to publish the stream failure. You cannot include URL keywords, otherwise publishing stream and playing stream will fails. - Only support numbers, English characters and '-', '_'.
- Need to be globally unique within the entire AppID (Note that it cannot be the same as the stream ID passed in
Implementation
Future<void> startBroadcasting(String streamID);