Interface ChannelMediaRelayInfo

Channel information in the media relay, used in ChannelMediaRelayConfiguration.

Hierarchy

  • ChannelMediaRelayInfo

Index

Properties

Properties

channelName

channelName: string

The channel name.

Optional token

token: undefined | string

The token generated with the channelName and uid. Do not set this parameter if you have not enabled token.

uid

uid: number

The unique ID to identify the relay stream.

A 32-bit unsigned integer with a value ranging from 0 to (232-1). If you set it as 0, the server assigns a random one.

When used for the source channel, it is the ID to identify the relay stream in the source channel.

When used for the destination channel, it is the ID to identify the relay stream in the destination channel. To avoid UID conflicts, this value must be different from any other user IDs in the destination channel.