BaiduRtcCloud class

Constructors

BaiduRtcCloud()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cameraFocusWithPoint(int positionX, int positionY) Future<void>
摄像头手动聚焦
disbandRoom() Future<void>
解散房间
enableAec(bool isAEc) Future<void>
是否开启webrtc aec
enableAgc(bool isAgc) Future<void>
是否开启音频自动增益
enableAns(bool isAns) Future<void>
是否开启音频噪声抑制
enableAudioMix(bool isEnable) Future<void>
enableBdAEC(bool enableBdAEC) Future<void>
是否开启百度回声消除
enableBdAGC(bool enableBdAGC) Future<void>
是否开启百度声音增益
enableBdANS(bool enableBdANS) Future<void>
是否开启百度降噪
enableErrorInfoToServer(bool isEnable, String monitorEnv) Future<void>
enableExternalAudioRecord(bool isEnable) Future<void>
enableExternalVideoCapturer(bool isEnable) Future<void>
enableMicCapture(bool enableMic) Future<void>
停止采集,关闭麦克风
enableStatsToServer(bool isEnable, String qualityMonitorEnv) Future<void>
getMaxCameraZoom() Future<double?>
获取设备摄像头支持的最大变焦倍数
getUserAttribute(String userId) Future<void>
isCameraZoomSupported() Future<bool?>
摄像头焦距
isExternalAudioRecord() Future<bool?>
isFocusSupported() Future<bool?>
是否支持焦点
isPeerConnectionFactoryReady() Future<bool?>
isSpeakerOn() Future<bool?>
扬声器是否打开
kickOffUserWithId(int userId) Future<void>
踢出用户
loginBRtcRoom(BRTCLoginParams params) Future<bool?>
登录房间
logoutRtcRoom() Future<bool?>
退出房间
muteCamera(bool muted) Future<void>
关闭/打开摄像头 在关闭摄像头后,本地无法预览,且不传输本地视频数据给对方
muteMicphone(bool muted) Future<void>
静音采集,不关闭麦克风
muteSpeaker(bool muted) Future<void>
禁音声音输出
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presetLoudSpeaker(bool isPresetLoudSpeaker) Future<void>
预置听筒/扬声器
registerListener(ListenerValue func) → void
removeRemoteDisplay(int userId) Future<void>
移除并释放user所对应的{@link RTCVideoView},可通过{@link #setRemoteDisplay(RTCVideoView, long)} 接口再次设置RenderView. 若用户不主动调用该接口释放RenderView,则相应的渲染视图将在远端用户退出或本端登出房间时释放.
sendData(String data) Future<void>
sendMessageToUser(String msg, int userId) Future<void>
setCameraID(int cameraId) Future<void>
设置指定的摄像头ID号
setCameraZoom(double zoomValue) Future<void>
摄像头焦距
setLocalDisplay(int viewId) Future<void>
设置本地显示view
setMediaServerURL(String MediaServerURL, String port) Future<void>
setParamSettings(BRTCCommonParam param) Future<void>
setRecording(bool isRecord) Future<void>
是否服务端录制
setRemoteDisplay(int viewId) Future<void>
设置远端显示view
setRemoteDisplayWithUserId(int viewId, int userId) Future<void>
setRemoteVideoPlayState(bool stats, int userId) Future<void>
指定远端画面暂停/恢复播放
setRoomMode(int roomMode) Future<void>
设置RTC 房间模式类型 (大房间模式、普通模式)
setSoundMod(int soundMod) Future<void>
设置声音输出方式
setUserAttribute(String attribute) Future<void>
setUserPlaybackVolume(int userId, int volume) Future<void>
设置远端用户播放音量大小
setVerbose(bool bOnVerbose) Future<void>
shutUpUserWithId(int userId) Future<void>
禁言用户
startPreview() Future<void>
开启本地预览
startPublish() Future<void>
开始推流
startRoomMediaRelay(String destRoomName, int userId, String token) Future<void>
启动跨房间连麦
stopPreview() Future<void>
停止本地预览
stopPublish() Future<void>
停止推流
stopRoomMediaRelay(String destRoomName, int userId) Future<void>
停止跨房间连麦
stopRoomMediaRelayAll() Future<void>
停止所有跨房间连麦
stopSubscribeStreaming(int userId) Future<void>
停止订阅用户
subscribeStreaming(int userId) Future<void>
订阅用户
subscribeStreamingWithViewId(int videoviewidx, int userId) Future<void>
订阅用户
switchCamera() Future<void>
切换前后摄像头
switchLoundSpeaker() Future<void>
开关扬声器
toString() String
A string representation of this object.
inherited
unRegisterListener(ListenerValue func) → void
unShutUpUserWithId(int userId) Future<void>
解禁用户
updateDisplay(int viewId, int userId) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

bdRtcCloud BaiduRtcCloud?
getter/setter pair
listener BRTCRoomListener?
getter/setter pair
platformVersion Future<String?>
no setter

Static Methods

destroyInstance() Future<void>
getInstance(BRTCInitParams params) Future<BaiduRtcCloud?>
初始化实例