N E Room Rtc Controller
音视频控制器
Functions
addBeautyFilter
Link copied to clipboard
addBeautySticker
Link copied to clipboard
adjustUserPlaybackSignalVolume
Link copied to clipboard
abstract fun adjustUserPlaybackSignalVolume(userUuid: String, volume: Int): Int
Content copied to clipboard
disableEarBack
Link copied to clipboard
enableAudioVolumeIndication
Link copied to clipboard
abstract fun enableAudioVolumeIndication(enable: Boolean, interval: Int): Int
Content copied to clipboard
启用说话者音量提示。 该方法允许 SDK 定期向 App 反馈本地发流用户和瞬时音量最高的远端用户(最多 3 位)的音量相关信息, 即当前谁在说话以及说话者的音量。启用该方法后,只要房间内有发流用户,无论是否有人说话, SDK 都会在加入房间后根据预设的时间间隔触发 NERoomListener.onRtcAudioVolumeIndication 回调
enableBeauty
Link copied to clipboard
enableEarBack
Link copied to clipboard
enableVirtualBackground
Link copied to clipboard
abstract fun enableVirtualBackground(enabled: Boolean, backgroundSource: NERoomVirtualBackgroundSource?): Int
Content copied to clipboard
开启/关闭虚拟背景。 启用虚拟背景功能后,您可以使用自定义背景图片替换本地用户的原始背景图片。 替换后,频道内所有用户都可以看到自定义背景图片。注解 您可以通过 NERtcCallbackEx#onVirtualBackgroundSourceEnabled() 回调查看虚拟背景是否开启成功或出错原因。 建议您在满足以下条件的场景中使用该功能: 采用高清摄像设备,环境光线均匀。 捕获的视频图像整洁,用户肖像半长且基本无遮挡,并且背景是与用户衣服颜色不同的单一颜色。 虚拟背景功能不支持在 Texture 格式的视频或通过 Push 方法从自定义视频源获取的视频中设置虚拟背景。 若您设置背景图片为自定义本地图片,SDK 会在保证背景图片内容不变形的前提下,对图片进行一定程度上的缩放和裁剪,以适配视频采集分辨率。 enabled 设置是否开启虚拟背景。true:开启。false: 关闭。
getEglContext
Link copied to clipboard
getScreenSharingUserUuid
Link copied to clipboard
isSpeakerphoneOn
Link copied to clipboard
joinRtcChannel
Link copied to clipboard
leaveRtcChannel
Link copied to clipboard
muteMemberAudio
Link copied to clipboard
abstract fun muteMemberAudio(userUuid: String, callback: NECallback<Unit>? = null)
Content copied to clipboard
muteMemberVideo
Link copied to clipboard
abstract fun muteMemberVideo(userUuid: String, callback: NECallback<Unit>? = null)
Content copied to clipboard
muteMyAudio
Link copied to clipboard
muteMyVideo
Link copied to clipboard
playEffect
Link copied to clipboard
abstract fun playEffect(effectId: Int, option: NERoomCreateAudioEffectOption): Int
Content copied to clipboard
pushExternalVideoFrame
Link copied to clipboard
removeBeautyFilter
Link copied to clipboard
removeBeautySticker
Link copied to clipboard
setAudioMixingPlaybackVolume
Link copied to clipboard
setAudioMixingSendVolume
Link copied to clipboard
setBeautyEffect
Link copied to clipboard
abstract fun setBeautyEffect(beautyType: NERoomBeautyEffectType, level: Float): Int
Content copied to clipboard
setBeautyFilterLevel
Link copied to clipboard
setEffectPlaybackVolume
Link copied to clipboard
setEffectSendVolume
Link copied to clipboard
setExternalVideoSource
Link copied to clipboard
开启或关闭外部视频源数据输入 该方法启用外部视频数据输入功能 (该方法设置内部引擎为启用状态,在 leaveChannel 后仍然有效。如果需要关闭该功能,需要在下次通话前调用接口关闭该功能。如果使用了外部视频源,请在调用 startScreenCapture、enableLocalVideo 或 startVideoPreview 之前调用此 API。屏幕共享时,外部输入视频源默认使用辅流通道;非屏幕共享时,外部输入视频源使用主流通道,此时与 Camera 互斥。之前使用主流通道或者当前使用主流通道,且主流已经开启时,请勿更改设置。之前使用辅流通道或者当前使用辅流通道,且辅流已经开启时,请勿更改设置。)
setSpeakerphoneOn
Link copied to clipboard
setupLocalVideoCanvas
Link copied to clipboard
setupLocalVideoRender
Link copied to clipboard
setupRemoteVideoCanvas
Link copied to clipboard
abstract fun setupRemoteVideoCanvas(videoView: NERoomVideoView?, userUuid: String): Int
Content copied to clipboard
setupRemoteVideoRender
Link copied to clipboard
abstract fun setupRemoteVideoRender(videoRender: IVideoRender?, userUuid: String): Int
Content copied to clipboard
setupRemoteVideoSubStreamCanvas
Link copied to clipboard
abstract fun setupRemoteVideoSubStreamCanvas(videoView: NERoomVideoView?, userUuid: String): Int
Content copied to clipboard
setupRemoteVideoSubStreamRender
Link copied to clipboard
abstract fun setupRemoteVideoSubStreamRender(videoRender: IVideoRender?, userUuid: String): Int
Content copied to clipboard
setVideoFrameCallback
Link copied to clipboard
abstract fun setVideoFrameCallback(textureWithI420: Boolean = false, callback: (NERoomVideoFrame) -> Boolean)
Content copied to clipboard
startAudioDump
Link copied to clipboard
startAudioMixing
Link copied to clipboard
abstract fun startAudioMixing(option: NERoomCreateAudioMixingOption): Int
Content copied to clipboard
startBeauty
Link copied to clipboard
startChannelMediaRelay
Link copied to clipboard
startScreenShare
Link copied to clipboard
abstract fun startScreenShare(screenShareResultData: Intent, mediaProjectionCallback: MediaProjection.Callback, callback: NECallback<Unit>? = null)
Content copied to clipboard
stopAllEffects
Link copied to clipboard
stopAudioDump
Link copied to clipboard
stopAudioMixing
Link copied to clipboard
stopBeauty
Link copied to clipboard
stopChannelMediaRelay
Link copied to clipboard
stopEffect
Link copied to clipboard
stopMemberScreenShare
Link copied to clipboard
abstract fun stopMemberScreenShare(userUuid: String, callback: NECallback<Unit>? = null)
Content copied to clipboard
stopScreenShare
Link copied to clipboard
subscribeRemoteVideoStream
Link copied to clipboard
abstract fun subscribeRemoteVideoStream(userUuid: String, streamType: NEVideoStreamType): Int
Content copied to clipboard
subscribeRemoteVideoSubStream
Link copied to clipboard
switchCamera
Link copied to clipboard
unmuteMemberAudio
Link copied to clipboard
abstract fun unmuteMemberAudio(userUuid: String, callback: NECallback<Unit>? = null)
Content copied to clipboard
unmuteMemberVideo
Link copied to clipboard
abstract fun unmuteMemberVideo(userUuid: String, callback: NECallback<Unit>? = null)
Content copied to clipboard
unmuteMyAudio
Link copied to clipboard
unmuteMyVideo
Link copied to clipboard
unsubscribeRemoteVideoStream
Link copied to clipboard
abstract fun unsubscribeRemoteVideoStream(userUuid: String, streamType: NEVideoStreamType): Int
Content copied to clipboard
unsubscribeRemoteVideoSubStream
Link copied to clipboard
Properties
isSupported
Link copied to clipboard