startBroadcasting abstract method

Future<void> startBroadcasting(
  1. 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:
    1. 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.
    2. Only support numbers, English characters and '-', '_'.

Implementation

Future<void> startBroadcasting(String streamID);