Class and Description |
---|
io.agora.rtc2.IRtcEngineEventHandler.ClientRole
Use the new
Constants class
with the same constants value |
io.agora.rtc2.IRtcEngineEventHandler.Quality
Use the new
Constants class
with the same constants value |
io.agora.rtc2.IRtcEngineEventHandler.UserOfflineReason
Use the new
Constants class
with the same constants value |
io.agora.rtc2.IRtcEngineEventHandler.VideoProfile
Use the new
Constants class
with the same constants value |
io.agora.rtc2.PublisherConfiguration.Builder
If you want to configure the push-stream, Agora recommends using the |
io.agora.rtc2.PublisherParameters |
io.agora.rtc2.video.VideoCompositingLayout |
Method and Description |
---|
io.agora.rtc2.RtcEngine.addVideoWatermark(AgoraImage)
From v2.9.1. We recommend using the
addVideoWatermark 2 method instead.
This method adds a PNG watermark image to the local video stream for the sampling device,
channel audience, or CDN live audience to see and capture. To add the PNG file to a CDN live
publishing stream, see the setLiveTranscoding method. |
io.agora.rtc2.RtcEngine.CreateRendererView(Context)
This method is deprecated. You can use SurfaceView or TextureView created by
Android system.
It returns the |
io.agora.rtc2.RtcEngine.CreateTextureView(Context)
This method is deprecated. You can use SurfaceView or TextureView created by
Android system.
It returns the |
io.agora.rtc2.RtcEngine.enableAudioQualityIndication(boolean)
From v2.4.1.
The |
io.agora.rtc2.RtcEngine.enableHighPerfWifiMode(boolean)
This method is deprecated.
|
io.agora.rtc2.live.LiveTranscoding.getBlue()
Gets the background color's blue component.
|
io.agora.rtc2.live.LiveTranscoding.getGreen()
Gets the background color's green component.
|
io.agora.rtc2.RtcEngine.getMediaEngineVersion() |
io.agora.rtc2.RtcEngine.getRecommendedEncoderType()
This method is deprecated.
|
io.agora.rtc2.live.LiveTranscoding.getRed()
Gets the background color's red component.
|
io.agora.rtc2.RtcEngine.monitorBluetoothHeadsetEvent(boolean) |
io.agora.rtc2.RtcEngine.monitorHeadsetEvent(boolean) |
io.agora.rtc2.IRtcEngineEventHandler.onFirstRemoteVideoDecoded(int, int, int, int)
This callback is deprecated. Use `REMOTE_VIDEO_STATE_STARTING(1)` or
`REMOTE_VIDEO_STATE_DECODING(2)` in the
onRemoteVideoStateChanged callback instead.
This callback is triggered in either of the following scenarios:
|
io.agora.rtc2.IAgoraEventHandler.onLocalVideoStat(int, int) |
io.agora.rtc2.IRtcEngineEventHandler.onLocalVideoStat(int, int)
The statistics of the uploading local video streams once every two seconds.
|
io.agora.rtc2.IRtcEngineEventHandler.onRemoteVideoStat(int, int, int, int)
The statistics of receiving remote video streams once every two seconds.
|
io.agora.rtc2.IRtcEngineEventHandler.onUserEnableLocalVideo(int, boolean)
This callback is deprecated and replaced by the
onRemoteVideoStateChanged callback with the following parameters:
- `REMOTE_VIDEO_STATE_STOPPED(0)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5)`.
- `REMOTE_VIDEO_STATE_DECODING(2)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6)`.
The SDK triggers this callback when the remote user resumes or stops capturing the video stream
by calling the enableLocalVideo method.
This callback is only applicable to the scenario when the remote user only wants to watch the
remote video without sending any video stream to the other user. |
io.agora.rtc2.IRtcEngineEventHandler.onUserEnableVideo(int, boolean)
This callback is deprecated and replaced by the
onRemoteVideoStateChanged callback with the following parameters:
- `REMOTE_VIDEO_STATE_STOPPED(0)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5)`.
- `REMOTE_VIDEO_STATE_DECODING(2)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6)`.
Once the video module is disabled, the remote user can only use a voice call. The remote user
cannot send or receive any video from other users.
The SDK triggers this callback when the remote user enables or disables the video module by
calling the enableVideo or disableVideo method. |
io.agora.rtc2.IRtcEngineEventHandler.onUserMuteVideo(int, boolean)
This callback is deprecated. Use the
onRemoteVideoStateChanged callback with the following parameters for the same function:
- `REMOTE_VIDEO_STATE_STOPPED(0)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5)`.
- `REMOTE_VIDEO_STATE_DECODING(2)` and `REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6)`.
The SDK triggers this callback when the remote user stops or resumes sending the video stream
by calling the muteLocalVideoStream method. |
io.agora.rtc2.IRtcEngineEventHandler.onWarning(int)
In most cases, the application can ignore the warnings reported by the SDK because the SDK
can usually fix the issue and resume running. For instance, the SDK may report a |
io.agora.mediaplayer.IMediaPlayer.openWithCustomSource(long, IMediaPlayerCustomDataProvider)
Opens a media with custom data provider
|
io.agora.rtc2.RtcEngine.pushExternalVideoFrame(AgoraVideoFrame) |
io.agora.rtc2.live.LiveTranscoding.setBlue(int)
Sets the background color's blue component.
|
io.agora.rtc2.RtcEngine.setDefaultMuteAllRemoteAudioStreams(boolean)
This method is deprecated. To set whether to receive remote audio streams by
default, call
muteAllRemoteAudioStreams before calling `joinChannel`.
Use `setDefaultMuteAllRemoteAudioStreams` to set whether to receive audio streams of subsequent
peer users. Agora recommends calling it before joining a channel.
A successful call of `setDefaultMuteAllRemoteAudioStreams(true)` results in that the local user
not receiving any audio stream after joining a channel. |
io.agora.rtc2.RtcEngine.setDefaultMuteAllRemoteVideoStreams(boolean)
This method is deprecated. To set whether to receive remote video streams by
default, call
muteAllRemoteVideoStreams before calling `joinChannel`.
Use `setDefaultMuteAllRemoteVideoStreams` to set whether to receive video streams of subsequent
peer users. Agora recommends calling it before joining a channel.
A successful call of `setDefaultMuteAllRemoteVideoStreams(true)` results in that the local user
not receiving any video stream after joining a channel. |
io.agora.rtc2.RtcEngine.setEncryptionMode(String)
This method is deprecated.
The Agora Native SDK supports built-in encryption. Call this API to set the encryption mode. All users in the same channel must use the same encryption mode and password. Refer to information related to the encryption algorithm on the differences between encryption modes.
Call Note: Do not use this function together with CDN. |
io.agora.rtc2.RtcEngine.setEncryptionSecret(String)
This method is deprecated.
All users in a channel must set the same encryption password. The encryption password is automatically cleared once a user has left the channel. If the encryption password is not specified or set to empty, the encryption function will be disabled. Note: Do not use this function together with CDN. |
io.agora.rtc2.live.LiveTranscoding.setGreen(int)
Sets the background color's green component.
|
io.agora.rtc2.RtcEngine.setLocalRenderMode(int) |
io.agora.rtc2.RtcEngine.setLocalVideoMirrorMode(int) |
io.agora.rtc2.RtcEngine.setPreferHeadset(boolean)
This method is deprecated.
|
io.agora.rtc2.live.LiveTranscoding.setRed(int)
Sets the background color's red component.
|
io.agora.rtc2.RtcEngine.setRemoteRenderMode(int, int) |
io.agora.rtc2.RtcEngine.startEchoTest()
Now use
#startEchoTest(int)
Starts an audio call test to determine whether the audio devices (for example, headset and speaker) and the network connection are working properly. In the test, the user first speaks, and the recording is played back in 10 seconds. If the user can hear the recording in 10 seconds, it indicates that the audio devices and network connection work properly.
Note: After calling the |