# ICallEngine

public interface ICallEngine

Created by mamingyang on 18/4/20.

## Functions

answerDegradeNormalUserToObserver
Link copied to clipboard
public abstract void answerDegradeNormalUserToObserver(String hostId)
answerHostControlUserDevice
Link copied to clipboard
public abstract int answerHostControlUserDevice(String userID, int dType, boolean isOpen, boolean isAccept)
麦克风/摄像头被主持人打开时, 被打开人的应答调用
answerUpgradeObserverToNormalUser
Link copied to clipboard
public abstract int answerUpgradeObserverToNormalUser(String userID, boolean isAccept)
complain
Link copied to clipboard
public abstract int complain(String callId, String description)
create
Link copied to clipboard
public abstract void create(Context context, String vendorKey, ICallEngineListener engineListener)
destroy
Link copied to clipboard
public abstract void destroy()
disableVideo
Link copied to clipboard
public abstract int disableVideo()
enableAudioVolumeIndication
Link copied to clipboard
public abstract int enableAudioVolumeIndication(int interval, int smooth)
enableMultiPlatformMode
Link copied to clipboard
public abstract void enableMultiPlatformMode()
开启多平台模式
enableVideo
Link copied to clipboard
public abstract int enableVideo()
getCallId
Link copied to clipboard
public abstract String getCallId()
getRemoteUsers
Link copied to clipboard
public abstract List<RCRTCRemoteUser> getRemoteUsers()
返回当前房间远端用户列表
getServerRecordingStatus
Link copied to clipboard
public abstract int getServerRecordingStatus()
isSpeakerphoneEnabled
Link copied to clipboard
public abstract boolean isSpeakerphoneEnabled()
joinChannel
Link copied to clipboard
public abstract int joinChannel(String key, String channelName, String optionalInfo, String mediaId, Role role, boolean openCamera, boolean openMic, int roomType)
joinRoomAndPublishResource
Link copied to clipboard
public abstract void joinRoomAndPublishResource(String channelName)
leaveChannel
Link copied to clipboard
public abstract int leaveChannel(int val)
monitorBluetoothHeadsetEvent
Link copied to clipboard
public abstract void monitorBluetoothHeadsetEvent(boolean monitor)
monitorConnectionEvent
Link copied to clipboard
public abstract void monitorConnectionEvent(boolean monitor)
monitorHeadsetEvent
Link copied to clipboard
public abstract void monitorHeadsetEvent(boolean monitor)
muteAllRemoteAudioStreams
Link copied to clipboard
public abstract int muteAllRemoteAudioStreams(boolean muted)
muteAllRemoteVideoStreams
Link copied to clipboard
public abstract int muteAllRemoteVideoStreams(boolean muted)
muteLocalAudioStream
Link copied to clipboard
public abstract int muteLocalAudioStream(boolean muted)
muteLocalVideoStream
Link copied to clipboard
public abstract int muteLocalVideoStream(boolean muted)
muteRemoteAudioStream
Link copied to clipboard
public abstract int muteRemoteAudioStream(String mediaId, boolean muted)
muteRemoteVideoStream
Link copied to clipboard
public abstract int muteRemoteVideoStream(String mediaId, boolean muted)
publishCustomVideoStream
Link copied to clipboard
public abstract void publishCustomVideoStream(String tag, PublishCallBack callBack)
publishMediaResource
Link copied to clipboard
public abstract void publishMediaResource(int mediaType, IMediaResourceListener iMediaResourceListener)
rate
Link copied to clipboard
public abstract int rate(String callId, int rating, String description)
requestNormalUser
Link copied to clipboard
public abstract int requestNormalUser()
requestWhiteBoard
Link copied to clipboard
public abstract int requestWhiteBoard()
setAudioConfig
Link copied to clipboard
public abstract void setAudioConfig(Builder builder)
音频相关配置
setAudioOnly
Link copied to clipboard
public abstract void setAudioOnly(boolean isAudioOnly)
设置是否仅音频通话，默认false
setCameraOrientation
Link copied to clipboard
public abstract void setCameraOrientation(int cameraDisplayOrientation, int frameOrientation)
设置Camera DisplayOrientation和FrameOrientation im连接成功之后，startCall之前 设置有效
setChannelProfile
Link copied to clipboard
public abstract int setChannelProfile(int profile)
setEnableBeauty
Link copied to clipboard
public abstract int setEnableBeauty(Boolean enable)
setEnableSpeakerphone
Link copied to clipboard
public abstract int setEnableSpeakerphone(boolean enabled)
setJoinType
Link copied to clipboard
public abstract void setJoinType(RCRTCJoinType joinType)
设置多端在线时的呼叫策略
setLocalAudioPCMBufferListener
Link copied to clipboard
public abstract void setLocalAudioPCMBufferListener(IRCRTCAudioDataListener iCallEngineAudioPCMBufferListener)
setLocalRenderMode
Link copied to clipboard
public abstract int setLocalRenderMode(int mode)
setLogFile
Link copied to clipboard
public abstract int setLogFile(String filePath)
setLogFilter
Link copied to clipboard
public abstract int setLogFilter(int filter)
setMultiPlatformLocalVideoView
Link copied to clipboard
public abstract void setMultiPlatformLocalVideoView(String tag, RCRTCBaseView videoView)
设置远端视频流的预览视图
setMultiPlatformRemoteVideoView
Link copied to clipboard
public abstract void setMultiPlatformRemoteVideoView(String userId, String tag, RCRTCBaseView videoView)
设置远端视频流的预览视图
setRemoteRenderMode
Link copied to clipboard
public abstract int setRemoteRenderMode(String mediaId, int mode)
setRTCConfig
Link copied to clipboard
public abstract void setRTCConfig(Builder builder)
RTC初始化相关配置
setSpeakerphoneVolume
Link copied to clipboard
public abstract int setSpeakerphoneVolume(int volume)
setupLocalVideo
Link copied to clipboard
public abstract SurfaceView setupLocalVideo()
setupRemoteVideo
Link copied to clipboard
public abstract SurfaceView setupRemoteVideo(String streamId)
setUserType
Link copied to clipboard
public abstract void setUserType(int type)
setVideoConfig
Link copied to clipboard
public abstract void setVideoConfig(Builder builder)
视频分辨率、码率相关配置
setVideoFrameListener
Link copied to clipboard
public abstract void setVideoFrameListener(ICallEngineVideoFrameListener iVideoFrameListener)
startAudioRecording
Link copied to clipboard
public abstract int startAudioRecording(String filePath)
startCapture
Link copied to clipboard
public abstract void startCapture()
startEchoTest
Link copied to clipboard
public abstract int startEchoTest()
startPreview
Link copied to clipboard
public abstract int startPreview(StartCameraCallback startCameraCallback)
public abstract void startPreview(int cameraId, boolean mirror, StartCameraCallback callback)
startServerRecording
Link copied to clipboard
public abstract int startServerRecording(String key)
stopEchoTest
Link copied to clipboard
public abstract int stopEchoTest()
stopPreview
Link copied to clipboard
public abstract int stopPreview()
stopServerRecording
Link copied to clipboard
public abstract int stopServerRecording(String key)
switchCamera
Link copied to clipboard
public abstract int switchCamera()
public abstract void switchCamera(int cameraId, boolean mirror, CameraSwitchCallBack callBack)
按照指定cameraid切换摄像头
switchView
Link copied to clipboard
public abstract void switchView(String mediaId1, String mediaId2)
unpublishCustomVideoStream
Link copied to clipboard
public abstract void unpublishCustomVideoStream(RCRTCOutputStream outputStream, IRCRTCResultCallback callBack)
unPublishMediaResource
Link copied to clipboard
public abstract void unPublishMediaResource(IMediaResourceListener iMediaResourceListener)