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.enableDualStreamMode(boolean)
v4.2.0. This method is deprecated. Use setDualStreamMode instead.
If dual-stream mode is enabled, the subscriber can choose to receive the high-stream
(high-resolution high-bitrate video stream) or low-stream (low-resolution low-bitrate video
stream) video using
setRemoteVideoStreamType . |
io.agora.rtc2.RtcEngine.enableDualStreamMode(boolean, SimulcastStreamConfig)
v4.2.0. This method is deprecated. Use setDualStreamMode instead.
If dual-stream mode is enabled, the subscriber can choose to receive the high-stream
(high-resolution high-bitrate video stream) or low-stream (low-resolution low-bitrate video
stream) video using
setRemoteVideoStreamType . |
io.agora.rtc2.RtcEngineEx.enableDualStreamModeEx(boolean, SimulcastStreamConfig, RtcConnection)
v4.2.0. This method is deprecated. Use setDualStreamModeEx instead.
If dual-stream mode is enabled, the subscriber can choose to receive the high-stream
(high-resolution high-bitrate video stream) or low-stream (low-resolution low-bitrate video
stream) video using
setRemoteVideoStreamType . |
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.IAgoraEventHandler.onChannelMediaRelayEvent(int)
v4.2.0. This callback is not recommended and will be removed in future releases.
|
io.agora.rtc2.IRtcEngineEventHandler.onChannelMediaRelayEvent(int)
v4.2.0. This callback is not recommended and will be removed in future releases.
|
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.mediaplayer.IMediaPlayer.openWithCustomSource(long, IMediaPlayerCustomDataProvider)
Opens a media with custom data provider
|
io.agora.rtc2.RtcEngine.pushExternalAudioFrame(byte[], long)
This method is deprecated. Use pushExternalAudioFrame(byte[] data, long timestamp,
int sampleRate, int channels, Constants.BytesPerSample bytesPerSample, int trackId)
instead.
|
io.agora.rtc2.RtcEngine.pushExternalAudioFrame(ByteBuffer, long, int)
This method is deprecated. Use pushExternalAudioFrame(ByteBuffer[] data, long
timestamp, int sampleRate, int channels, Constants.BytesPerSample bytesPerSample, int
trackId) instead.
|
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.RtcEngine.setExternalAudioSource(boolean, int, int)
This method is deprecated. Use createCustomAudioTrack(Constants.AudioTrackType
trackType, AudioTrackConfig config) instead.
|
io.agora.rtc2.RtcEngine.setExternalAudioSource(boolean, int, int, boolean, boolean)
This method is deprecated. Use createCustomAudioTrack(Constants.AudioTrackType
trackType, AudioTrackConfig config) instead.
|
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.startChannelMediaRelay(ChannelMediaRelayConfiguration)
This method is deprecated from v4.2.0. Use `startOrUpdateChannelMediaRelay`
instead.
|
io.agora.rtc2.RtcEngineEx.startChannelMediaRelayEx(ChannelMediaRelayConfiguration, RtcConnection)
This method is deprecated from v4.2.0. Use `startOrUpdateChannelMediaRelayEx`
instead.
|
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 |
io.agora.rtc2.RtcEngine.startEchoTest(int)
Now use
RtcEngine.startEchoTest(EchoTestConfiguration)
Starts an audio call test. |
io.agora.rtc2.RtcEngine.updateChannelMediaRelay(ChannelMediaRelayConfiguration)
This method is deprecated from v4.2.0. Use `startOrUpdateChannelMediaRelay`
instead.
|
io.agora.rtc2.RtcEngineEx.updateChannelMediaRelayEx(ChannelMediaRelayConfiguration, RtcConnection)
This method is deprecated from v4.2.0. Use `startOrUpdateChannelMediaRelayEx`
instead.
|