destInfos property

  1. @JsonKey(name: 'destInfos')
List<ChannelMediaInfo>? destInfos
final

The information of the target channel ChannelMediaInfo. It contains the following members: channelName : The name of the target channel. token : The token for joining the target channel. It is generated with the channelName and uid you set in destInfos. If you have not enabled the App Certificate, set this parameter as the default value NULL, which means the SDK applies the App ID. If you have enabled the App Certificate, you must use the token generated with the channelName and uid. If the token of any target channel expires, the whole media relay stops; hence Agora recommends that you specify the same expiration time for the tokens of all the target channels. uid : The unique user ID to identify the relay stream in the target channel. The value ranges from 0 to (2 32 -1). To avoid user ID conflicts, this user ID must be different from any other user ID in the target channel. The default value is 0, which means the SDK generates a random user ID.

Implementation

@JsonKey(name: 'destInfos')
final List<ChannelMediaInfo>? destInfos;