setStreamExtraInfo method
- String extraInfo,
- {ZegoPublishChannel? channel}
Sets the extra information of the stream being published for the specified publish channel.
Available since: 1.1.0
Description: Use this function to set the extra info of the stream. The stream extra information is an extra information identifier of the stream ID. Unlike the stream ID, which cannot be modified during the publishing process, the stream extra information can be modified midway through the stream corresponding to the stream ID. Developers can synchronize variable content related to stream IDs based on stream additional information.
When to call: After the engine is created createEngine, Called before and after startPublishingStream can both take effect.
Restrictions: None.
Related callbacks: Users can obtain the execution result of the function through ZegoPublisherSetStreamExtraInfoResult
callback.
extraInfo
Stream extra information, a string of up to 1024 characters.channel
Publish stream channel.- Returns Set stream extra information execution result notification.
Implementation
Future<ZegoPublisherSetStreamExtraInfoResult> setStreamExtraInfo(
String extraInfo,
{ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance
.setStreamExtraInfo(extraInfo, channel: channel);
}