io.agora.rtc.RtcConnConfig类 参考
RTC 连接配置。
你需要在调用 agoraRtcConnCreate 时配置下列参数。、
构造及析构函数说明
RtcConnConfig() [1/2]
io.agora.rtc.RtcConnConfig.RtcConnConfig | ( | ) |
RtcConnConfig() [2/2]
io.agora.rtc.RtcConnConfig.RtcConnConfig | ( | int | autoSubscribeAudio, |
int | autoSubscribeVideo, | ||
int | enableAudioRecordingOrPlayout, | ||
int | maxSendBitrate, | ||
int | minPort, | ||
int | maxPort, | ||
AudioSubscriptionOptions | audioSubsOptions, | ||
int | clientRoleType, | ||
int | channelProfile, | ||
int | audioRecvMediaPacket, | ||
int | videoRecvMediaPacket | ||
) |
构造函数。
参数
参数名 | 描述 |
---|---|
autoSubscribeAudio | 是否自动订阅所有音频轨道。
|
autoSubscribeVideo | 是否自动订阅所有视频轨道。
|
enableAudioRecordingOrPlayout | 是否开启音频录制或播放。
|
maxSendBitrate | 最大发送码率。 |
minPort | 最小端口。 |
maxPort | 最大端口。 |
audioSubsOptions | 音频订阅选项。 |
clientRoleType | 用户角色:
|
channelProfile | 频道场景:
|
audioRecvMediaPacket | 是否接收音频媒体包。 |
audioRecvMediaPacket | 是否接收视频媒体包。 |
成员函数说明
getAudioRecvMediaPacket()
int io.agora.rtc.RtcConnConfig.getAudioRecvMediaPacket | ( | ) |
getAudioSubsOptions()
AudioSubscriptionOptions io.agora.rtc.RtcConnConfig.getAudioSubsOptions | ( | ) |
getAutoSubscribeAudio()
int io.agora.rtc.RtcConnConfig.getAutoSubscribeAudio | ( | ) |
getAutoSubscribeVideo()
int io.agora.rtc.RtcConnConfig.getAutoSubscribeVideo | ( | ) |
getChannelProfile()
int io.agora.rtc.RtcConnConfig.getChannelProfile | ( | ) |
getClientRoleType()
int io.agora.rtc.RtcConnConfig.getClientRoleType | ( | ) |
getEnableAudioRecordingOrPlayout()
int io.agora.rtc.RtcConnConfig.getEnableAudioRecordingOrPlayout | ( | ) |
getMaxPort()
int io.agora.rtc.RtcConnConfig.getMaxPort | ( | ) |
getMaxSendBitrate()
int io.agora.rtc.RtcConnConfig.getMaxSendBitrate | ( | ) |
getMinPort()
int io.agora.rtc.RtcConnConfig.getMinPort | ( | ) |
getVideoRecvMediaPacket()
int io.agora.rtc.RtcConnConfig.getVideoRecvMediaPacket | ( | ) |
setAudioRecvMediaPacket()
void io.agora.rtc.RtcConnConfig.setAudioRecvMediaPacket | ( | int | audioRecvMediaPacket | ) |
setAudioSubsOptions()
void io.agora.rtc.RtcConnConfig.setAudioSubsOptions | ( | AudioSubscriptionOptions | audioSubsOptions | ) |
setAutoSubscribeAudio()
void io.agora.rtc.RtcConnConfig.setAutoSubscribeAudio | ( | int | autoSubscribeAudio | ) |
setAutoSubscribeVideo()
void io.agora.rtc.RtcConnConfig.setAutoSubscribeVideo | ( | int | autoSubscribeVideo | ) |
setChannelProfile()
void io.agora.rtc.RtcConnConfig.setChannelProfile | ( | int | channelProfile | ) |
setClientRoleType()
void io.agora.rtc.RtcConnConfig.setClientRoleType | ( | int | clientRoleType | ) |
setEnableAudioRecordingOrPlayout()
void io.agora.rtc.RtcConnConfig.setEnableAudioRecordingOrPlayout | ( | int | enableAudioRecordingOrPlayout | ) |
setMaxPort()
void io.agora.rtc.RtcConnConfig.setMaxPort | ( | int | maxPort | ) |
setMaxSendBitrate()
void io.agora.rtc.RtcConnConfig.setMaxSendBitrate | ( | int | maxSendBitrate | ) |
setMinPort()
void io.agora.rtc.RtcConnConfig.setMinPort | ( | int | minPort | ) |
setVideoRecvMediaPacket()
void io.agora.rtc.RtcConnConfig.setVideoRecvMediaPacket | ( | int | videoRecvMediaPacket | ) |