Agora RTC Objective-C API Reference  Refactor
Deprecated List
Global IRtcConnectionObserver::onApiCallExecuted (int err, const char *api, const char *result) 1
This callback is deprecated. Use other specific event callbacks instead.
Global agora::CHANNEL_PROFILE_GAME
This profile is deprecated.
Global agora::CHANNEL_PROFILE_CLOUD_GAMING
This profile is deprecated.
Global agora::CHANNEL_PROFILE_COMMUNICATION_1v1
This profile is deprecated.
Global agora::rtc::QUALITY_UNKNOWN
This member is deprecated.
Global agora::media::base::RENDER_MODE_ADAPTIVE
3: This mode is deprecated.
Global IMediaPlayerSource::openWithCustomSource (int64_t startPos, media::base::IMediaPlayerCustomDataProvider *provider)=0
Global RemoteVideoStats::delay
Time delay (ms).
Global IRtcEngineEventHandler::onAudioQuality (uid_t uid, int quality, unsigned short delay, unsigned short lost)
This callback is deprecated. Use onRemoteAudioStats instead.
Global IRtcEngineEventHandler::onApiCallExecuted (int err, const char *api, const char *result) 1
This callback is deprecated. Use other specific event callbacks instead.
Global IRtcEngineEventHandler::onCameraReady ()
Use LOCAL_VIDEO_STREAM_STATE_CAPTURING(1) in onLocalVideoStateChanged instead. This callback indicates that the camera has been successfully turned on and you can start to capture video.
Global IRtcEngineEventHandler::onVideoStopped ()
Use LOCAL_VIDEO_STREAM_STATE_STOPPED(0) in the onLocalVideoStateChanged callback instead.
Global IRtcEngineEventHandler::onConnectionInterrupted ()
Use onConnectionStateChanged instead.
Global IRtcEngineEventHandler::onConnectionBanned ()
Use onConnectionStateChanged instead.
Global IRtcEngineEventHandler::onFirstRemoteAudioFrame (uid_t uid, int elapsed)
Use onRemoteAudioStateChanged instead.
Global IRtcEngineEventHandler::onFirstRemoteAudioDecoded (uid_t uid, int elapsed)
Use onRemoteAudioStateChanged instead. The SDK triggers this callback under one of the following circumstances:
  • The remote user joins the channel and sends the audio stream for the first time.
  • The remote user's audio is offline and then goes online to re-send audio. It means the local user cannot receive audio in 15 seconds. Reasons for such an interruption include:
    • The remote user leaves channel.
    • The remote user drops offline.
    • The remote user calls muteLocalAudioStream to stop sending the audio stream.
    • The remote user calls disableAudio to disable audio.
Global IRtcEngineEventHandler::onRemoteAudioTransportStats (uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate)
Use onRemoteAudioStats instead.
Global IRtcEngineEventHandler::onRemoteVideoTransportStats (uid_t uid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate)
Use onRemoteVideoStats instead.
Global IRtcEngine::setAudioProfile (AUDIO_PROFILE_TYPE profile, AUDIO_SCENARIO_TYPE scenario) 1=0
This method is deprecated. You can use the setAudioProfile method instead. To set the audio scenario, call the initialize method and pass value in the audioScenario member in the RtcEngineContext struct.
Global IRtcEngine::setDefaultMuteAllRemoteAudioStreams (bool mute) 1=0
This method is deprecated. To set whether to receive remote audio streams by default, call muteAllRemoteAudioStreams before calling joinChannel
Global IRtcEngine::setDefaultMuteAllRemoteVideoStreams (bool mute) 1=0
This method is deprecated. To set whether to receive remote video streams by default, call muteAllRemoteVideoStreams before calling joinChannel.
Global IRtcEngine::enableWebSdkInteroperability (bool enabled) 1=0
The Agora NG SDK enables the interoperablity with the Web SDK.
Global IRtcEngineEventHandlerEx::onAudioQuality (const RtcConnection &connection, uid_t remoteUid, int quality, unsigned short delay, unsigned short lost)
This callback is deprecated. Use onRemoteAudioStats instead.
Global IRtcEngineEventHandlerEx::onFirstLocalVideoFrame (const RtcConnection &connection, int width, int height, int elapsed)
4.0.0 This callback is deprecated, use void onFirstLocalVideoFrame(VIDEO_SOURCE_TYPE source, int width, int height, int elapsed) instead.
Global IRtcEngineEventHandlerEx::onConnectionInterrupted (const RtcConnection &connection)
Use onConnectionStateChanged instead.
Global IRtcEngineEventHandlerEx::onFirstRemoteAudioFrame (const RtcConnection &connection, uid_t userId, int elapsed)
Use onRemoteAudioStateChanged instead.
Global IRtcEngineEventHandlerEx::onFirstRemoteAudioDecoded (const RtcConnection &connection, uid_t uid, int elapsed)
Use onRemoteAudioStateChanged instead. The SDK triggers this callback under one of the following circumstances:
  • The remote user joins the channel and sends the audio stream for the first time.
  • The remote user's audio is offline and then goes online to re-send audio. It means the local user cannot receive audio in 15 seconds. Reasons for such an interruption include:
    • The remote user leaves channel.
    • The remote user drops offline.
    • The remote user calls muteLocalAudioStream to stop sending the audio stream.
    • The remote user calls disableAudio to disable audio.
Global IRtcEngineEventHandlerEx::onRemoteAudioTransportStats (const RtcConnection &connection, uid_t remoteUid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate)
Use onRemoteAudioStats instead.
Global IRtcEngineEventHandlerEx::onRemoteVideoTransportStats (const RtcConnection &connection, uid_t remoteUid, unsigned short delay, unsigned short lost, unsigned short rxKBitRate)
Use onRemoteVideoStats instead.
Global [AgoraBaseDelegate-p rtcEngine:didApiCallExecute:api:result:]
This callback is deprecated. Use other specific event callbacks instead.
Global AgoraChannelProfileGame
2: Gaming.
Global AgoraChannelProfileCloudGaming
3: Cloud Gaming.
Global AgoraChannelProfileCommunication_1v1
4:1-to-1 communication.
Global AgoraVideoRenderModeAdaptive
Adaptive(3):This mode is obsolete.
Global AgoraVideoFrame::stride
Use strideInPixels instead.
Global [AgoraRtcEngineDelegate-p rtcEngine:didApiCallExecute:api:result:]
This callback is deprecated. Use other specific event callbacks instead.
Global [AgoraRtcEngineKit enableWebSdkInteroperability:]
Web SDK interoperability is by default enabled.
Global [AgoraRtcEngineKit setLocalRenderMode:mode:]
Global [AgoraRtcEngineKit setDefaultMuteAllRemoteVideoStreams:]
To set whether to receive remote video streams by default, call muteAllRemoteVideoStreams: (AgoraRtcEngineKit) muteAllRemoteVideoStreams before calling joinChannelByToken.
Global [AgoraRtcEngineKit setAudioProfile:scenario:]
This method is deprecated. You can use the setAudioProfile: (AgoraRtcEngineKit) setAudioProfile method instead.
Global [AgoraRtcMediaPlayerProtocol-p openWithCustomSourceAtStartPos:withPlayerOnReadData:andPlayerOnSeek:]
Open media file or stream with custom soucrce. The custom data source provides a data stream input callback, and the player will continue to call back this interface, requesting the user to fill in the data that needs to be played.