-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionv4.6.0.v4.6.0.Use the new
Constantsclass with the same constants valueUse the newConstantsclass with the same constants valueUse the newConstantsclass with the same constants valueUse the newConstantsclass with the same constants valueIf you want to configure the push-stream, Agora recommends using the
setLiveTranscodingmethod.
-
Deprecated Enum ClassesEnum ClassDescriptionv4.6.0.v4.6.0.
-
Deprecated FieldsFieldDescriptionThis parameter is deprecated. We recommend using the
setBackgroundColormethod to set the background color.Deprecated as of v2.8.0. Agora does not recommend using this parameter. Latency mode:- true: Low latency with unassured quality.
- false: (Default) High latency with assured quality.
This parameter is deprecated.This parameter is deprecated. We recommend using thegetUserCountmethod.Content inspect type moderation
-
Deprecated MethodsMethodDescription4.6.04.6.04.6.04.6.04.6.04.6.04.6.04.6.0Use
onAudioMixingStateChangedinstead.If you failed to execute the
startAudioMixingmethod, it returns the error code in theonErrorcallback.UseonLocalVideoStateChangedinstead.If the camera fails to turn on, an error is passed in the
onErrormethod.This callback is deprecated. Use `REMOTE_VIDEO_STATE_STARTING(1)` or `REMOTE_VIDEO_STATE_DECODING(2)` in theonRemoteVideoStateChangedcallback instead. This callback is triggered in either of the following scenarios:- The remote user joins the channel and sends the video stream.
- The remote user stops sending the video stream and re-sends it after 15 seconds.
Possible reasons include:
- The remote user leaves channel.
- The remote user drops offline.
- The remote user calls the
muteLocalVideoStreammethod. - The remote user calls the
disableVideomethod.
The statistics of the uploading local video streams once every two seconds.UseonRemoteAudioStatsinstead.The statistics of receiving remote video streams once every two seconds.UseonRemoteVideoStatsinstead.This callback is deprecated and replaced by theonRemoteVideoStateChangedcallback 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 theenableLocalVideomethod. 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.UseonLocalVideoStateChangedinstead.The application can use this callback to change the configuration of the view (for example, display other pictures in the view) after the video stops.
Gets the background color's blue component.Gets the background color's green component.Gets the background color's red component.Sets the background color's blue component.Sets the background color's green component.Sets the background color's red component.From v2.9.1. We recommend using theaddVideoWatermark2 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 thesetLiveTranscodingmethod.From v4.6.0. We recommend using theaddVideoWatermark2 method instead. This method adds a PNG watermark image to the local video stream in a live streaming. Once the watermark image is added, all the audience in the channel (CDN audience included), and the sampling device can see and capture it. Agora supports adding only one watermark image onto the local video, and the newly watermark image replaces the previous one. The watermark position depends on the settings in thesetVideoEncoderConfigurationmethod: - If the orientation mode of the encoding video is ORIENTATION_MODE_FIXED_LANDSCAPE, or the landscape mode in ORIENTATION_MODE_ADAPTIVE, the watermark uses the landscape orientation. - If the orientation mode of the encoding video is ORIENTATION_MODE_FIXED_PORTRAIT, or the portrait mode in ORIENTATION_MODE_ADAPTIVE, the watermark uses the portrait orientation. - When setting the watermark position, the region must be less than the dimensions set in the setVideoEncoderConfiguration method. Otherwise, the watermark image will be cropped.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 usingsetRemoteVideoStreamType.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 usingsetRemoteVideoStreamType.This method is deprecated.This method is deprecated.This method is deprecated. Use pushExternalAudioFrame(byte[] data, long timestamp, int sampleRate, int channels, Constants.BytesPerSample bytesPerSample, int trackId) instead.This method is deprecated. Use pushExternalAudioFrame(ByteBuffer[] data, long timestamp, int sampleRate, int channels, Constants.BytesPerSample bytesPerSample, int trackId) instead.This method is deprecated.This method is deprecated. Call thesetExternalVideoSourcemethod and set `pushMode` as `true` before calling this method. Otherwise, a failure returns after calling this method.v4.6.0.v4.6.0.This method is deprecated. Use createCustomAudioTrack(Constants.AudioTrackType trackType, AudioTrackConfig config) instead.This method is deprecated. Use createCustomAudioTrack(Constants.AudioTrackType trackType, AudioTrackConfig config) instead.This method is deprecated.v4.6.0.v4.6.0.v4.6.0.From v4.6.0. We recommend using theaddVideoWatermark2 method instead. This method adds a PNG watermark image to the local video stream in a live streaming. Once the watermark image is added, all the audience in the channel (CDN audience included), and the sampling device can see and capture it. Agora supports adding only one watermark image onto the local video, and the newly watermark image replaces the previous one. The watermark position depends on the settings in thesetVideoEncoderConfigurationmethod: - If the orientation mode of the encoding video is ORIENTATION_MODE_FIXED_LANDSCAPE, or the landscape mode in ORIENTATION_MODE_ADAPTIVE, the watermark uses the landscape orientation. - If the orientation mode of the encoding video is ORIENTATION_MODE_FIXED_PORTRAIT, or the portrait mode in ORIENTATION_MODE_ADAPTIVE, the watermark uses the portrait orientation. - When setting the watermark position, the region must be less than the dimensions set in the setVideoEncoderConfiguration method. Otherwise, the watermark image will be cropped.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 usingsetRemoteVideoStreamType.This method is deprecated from v4.2.0. Use `startOrUpdateChannelMediaRelayEx` instead.