21class IAudioEngineWrapper;
23class ILocalUserObserver;
24class ILocalVideoTrack;
25class IRemoteVideoTrack;
26class IVideoFrameObserver2;
28struct AudioEncoderConfiguration;
29struct VideoEncoderConfiguration;
31class ILocalAudioTrack;
32struct RemoteAudioTrackStats;
33class IRemoteAudioTrack;
34struct LocalVideoTrackStats;
35struct RemoteVideoTrackStats;
104 struct AudioProcessingStats {
196 virtual void setAudienceLatencyLevel(AUDIENCE_LATENCY_LEVEL_TYPE level) = 0;
198 virtual AUDIENCE_LATENCY_LEVEL_TYPE getAudienceLatencyLevel() = 0;
225 virtual int publishAudio(agora_refptr<ILocalAudioTrack> audioTrack, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
236 virtual int unpublishAudio(agora_refptr<ILocalAudioTrack> audioTrack, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
247 virtual int publishVideo(agora_refptr<ILocalVideoTrack> videoTrack, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
258 virtual int unpublishVideo(agora_refptr<ILocalVideoTrack> videoTrack, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
327 uint32_t sampleRateHz,
329 int samplesPerCall = 0,
330 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
349 uint32_t sampleRateHz,
351 int samplesPerCall = 0,
352 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
369 uint32_t sampleRateHz,
370 int samplesPerCall = 0,
371 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
389 uint32_t sampleRateHz,
390 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
480 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
535 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
610 virtual void onAudioTrackPublicationFailure(agora_refptr<ILocalAudioTrack> audioTrack,
611 ERROR_CODE_TYPE error) = 0;
646 agora_refptr<rtc::IRemoteAudioTrack> audioTrack) = 0;
658 agora_refptr<rtc::IRemoteAudioTrack> audioTrack,
677 virtual void onVideoTrackPublicationFailure(agora_refptr<ILocalVideoTrack> videoTrack,
678 ERROR_CODE_TYPE error) = 0;
715 agora_refptr<rtc::IRemoteVideoTrack> videoTrack) = 0;
727 agora_refptr<rtc::IRemoteVideoTrack> videoTrack,
741 int height,
int elapsed) = 0;
783 int totalVolume) = 0;
797 virtual void onActiveSpeaker(
user_id_t userId) = 0;
865 virtual void onFirstRemoteVideoFrame(
user_id_t userId,
int width,
int height,
int elapsed) = 0;
897 USER_MEDIA_INFO_ENABLE_LOCAL_VIDEO = 8,
978 virtual void onFrame(
const char* channelId,
user_id_t remoteUid,
const media::base::VideoFrame* frame) = 0;
Definition: AgoraMediaBase.h:765
Definition: AgoraOptional.h:413
Definition: NGIAgoraLocalUser.h:48
virtual int subscribeAllVideo(const rtc::VideoSubscriptionOptions &subscriptionOptions, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setPlaybackAudioFrameParameters(size_t numberOfChannels, uint32_t sampleRateHz, RAW_AUDIO_FRAME_OP_MODE_TYPE mode=RAW_AUDIO_FRAME_OP_MODE_READ_ONLY, int samplesPerCall=0, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unsubscribeAllAudio(aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int registerVideoFrameObserver(IVideoFrameObserver2 *observer)=0
virtual int sendIntraRequest(user_id_t userId, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unsubscribeAudio(user_id_t userId, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual void setUserRole(rtc::CLIENT_ROLE_TYPE role, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int registerLocalUserObserver(ILocalUserObserver *observer, void(*safeDeleter)(ILocalUserObserver *)=NULL, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int publishVideo(agora_refptr< ILocalVideoTrack > videoTrack, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setAudioEncoderConfiguration(const rtc::AudioEncoderConfiguration &config, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int publishAudio(agora_refptr< ILocalAudioTrack > audioTrack, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unsubscribeVideo(user_id_t userId, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int subscribeAllAudio(aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual CLIENT_ROLE_TYPE getUserRole()=0
virtual int setPlaybackAudioFrameBeforeMixingParameters(size_t numberOfChannels, uint32_t sampleRateHz, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unregisterLocalUserObserver(ILocalUserObserver *observer)=0
virtual int subscribeAudio(user_id_t userId, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual ~ILocalUser()
Definition: NGIAgoraLocalUser.h:167
virtual int subscribeVideo(user_id_t userId, const rtc::VideoSubscriptionOptions &subscriptionOptions, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unregisterAudioFrameObserver(agora::media::IAudioFrameObserverBase *observer)=0
virtual int registerAudioFrameObserver(agora::media::IAudioFrameObserverBase *observer, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unregisterVideoFrameObserver(IVideoFrameObserver2 *observer)=0
virtual int unpublishVideo(agora_refptr< ILocalVideoTrack > videoTrack, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int registerVideoEncodedFrameObserver(agora::media::IVideoEncodedFrameObserver *observer, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unpublishAudio(agora_refptr< ILocalAudioTrack > audioTrack, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setRecordingAudioFrameParameters(size_t numberOfChannels, uint32_t sampleRateHz, RAW_AUDIO_FRAME_OP_MODE_TYPE mode=RAW_AUDIO_FRAME_OP_MODE_READ_ONLY, int samplesPerCall=0, aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int unregisterVideoEncodedFrameObserver(agora::media::IVideoEncodedFrameObserver *observer)=0
virtual int unsubscribeAllVideo(aosl_ref_t ares=AOSL_REF_INVALID)=0
virtual int setMixedAudioFrameParameters(size_t numberOfChannels, uint32_t sampleRateHz, int samplesPerCall=0, aosl_ref_t ares=AOSL_REF_INVALID)=0
Definition: NGIAgoraLocalUser.h:591
virtual void onVideoPublishStateChanged(const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)=0
virtual ~ILocalUserObserver()
Definition: NGIAgoraLocalUser.h:593
virtual void onAudioSubscribeStateChanged(const char *channel, user_id_t userId, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)=0
virtual void onStreamMessage(user_id_t userId, int streamId, const char *data, size_t length)
Definition: NGIAgoraLocalUser.h:935
virtual void onLocalVideoTrackStatistics(agora_refptr< rtc::ILocalVideoTrack > videoTrack, const LocalVideoTrackStats &stats)=0
virtual void onAudioTrackPublishSuccess(agora_refptr< ILocalAudioTrack > audioTrack)=0
virtual void onAudioPublishStateChanged(const char *channel, STREAM_PUBLISH_STATE oldState, STREAM_PUBLISH_STATE newState, int elapseSinceLastState)=0
virtual void onVideoSubscribeStateChanged(const char *channel, user_id_t userId, STREAM_SUBSCRIBE_STATE oldState, STREAM_SUBSCRIBE_STATE newState, int elapseSinceLastState)=0
virtual void onUserInfoUpdated(user_id_t userId, USER_MEDIA_INFO msg, bool val)
Definition: NGIAgoraLocalUser.h:909
virtual void onLocalAudioTrackStatistics(const LocalAudioStats &stats)=0
virtual void onUserVideoTrackSubscribed(user_id_t userId, VideoTrackInfo trackInfo, agora_refptr< rtc::IRemoteVideoTrack > videoTrack)=0
virtual void onUserVideoTrackStateChanged(user_id_t userId, agora_refptr< rtc::IRemoteVideoTrack > videoTrack, REMOTE_VIDEO_STATE state, REMOTE_VIDEO_STATE_REASON reason, int elapsed)=0
virtual void onFirstRemoteAudioDecoded(user_id_t userId, int elapsed)=0
virtual void onVideoTrackPublishSuccess(agora_refptr< ILocalVideoTrack > videoTrack)=0
virtual void onRemoteAudioTrackStatistics(agora_refptr< rtc::IRemoteAudioTrack > audioTrack, const RemoteAudioTrackStats &stats)=0
virtual void onFirstRemoteVideoFrameRendered(user_id_t userId, int width, int height, int elapsed)=0
virtual void onUserAudioTrackSubscribed(user_id_t userId, agora_refptr< rtc::IRemoteAudioTrack > audioTrack)=0
virtual void onUserStateChanged(user_id_t userId, uint32_t state)
Definition: NGIAgoraLocalUser.h:964
virtual void onFirstRemoteAudioFrame(user_id_t userId, int elapsed)=0
virtual void onIntraRequestReceived()
Definition: NGIAgoraLocalUser.h:921
virtual void onFirstRemoteVideoDecoded(user_id_t userId, int width, int height, int elapsed)=0
REMOTE_USER_STATE
Definition: NGIAgoraLocalUser.h:939
@ PEER_STATE_ENABLE_VIDEO
Definition: NGIAgoraLocalUser.h:951
@ PEER_STATE_MUTE_AUDIO
Definition: NGIAgoraLocalUser.h:943
@ PEER_STATE_ENABLE_LOCAL_VIDEO
Definition: NGIAgoraLocalUser.h:955
@ PEER_STATE_MUTE_VIDEO
Definition: NGIAgoraLocalUser.h:947
virtual void onRemoteVideoTrackStatistics(agora_refptr< rtc::IRemoteVideoTrack > videoTrack, const RemoteVideoTrackStats &stats)=0
virtual void onLocalAudioTrackStateChanged(agora_refptr< rtc::ILocalAudioTrack > audioTrack, LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_ERROR errorCode)=0
virtual void onLocalVideoTrackStateChanged(agora_refptr< rtc::ILocalVideoTrack > videoTrack, LOCAL_VIDEO_STREAM_STATE state, LOCAL_VIDEO_STREAM_ERROR errorCode)=0
virtual void onUserAudioTrackStateChanged(user_id_t userId, agora_refptr< rtc::IRemoteAudioTrack > audioTrack, REMOTE_AUDIO_STATE state, REMOTE_AUDIO_STATE_REASON reason, int elapsed)=0
USER_MEDIA_INFO
Definition: NGIAgoraLocalUser.h:880
@ USER_MEDIA_INFO_MUTE_VIDEO
Definition: NGIAgoraLocalUser.h:888
@ USER_MEDIA_INFO_ENABLE_VIDEO
Definition: NGIAgoraLocalUser.h:892
@ USER_MEDIA_INFO_MUTE_AUDIO
Definition: NGIAgoraLocalUser.h:884
Definition: NGIAgoraLocalUser.h:967
virtual ~IVideoFrameObserver2()
Definition: NGIAgoraLocalUser.h:980
virtual void onFrame(const char *channelId, user_id_t remoteUid, const media::base::VideoFrame *frame)=0
LOCAL_AUDIO_STREAM_STATE
Definition: AgoraBase.h:2735
LOCAL_AUDIO_STREAM_ERROR
Definition: AgoraBase.h:2758
CLIENT_ROLE_TYPE
Definition: AgoraBase.h:2414
REMOTE_AUDIO_STATE_REASON
Definition: AgoraBase.h:2878
STREAM_PUBLISH_STATE
Definition: AgoraBase.h:4882
LOCAL_VIDEO_STREAM_STATE
Definition: AgoraBase.h:2789
REMOTE_VIDEO_STATE
Definition: AgoraBase.h:2919
REMOTE_AUDIO_STATE
Definition: AgoraBase.h:2843
STREAM_SUBSCRIBE_STATE
Definition: AgoraBase.h:4859
LOCAL_VIDEO_STREAM_ERROR
Definition: AgoraBase.h:2812
REMOTE_VIDEO_STATE_REASON
Definition: AgoraBase.h:2948
RAW_AUDIO_FRAME_OP_MODE_TYPE
Definition: AgoraMediaBase.h:56
@ RAW_AUDIO_FRAME_OP_MODE_READ_ONLY
Definition: AgoraMediaBase.h:61
Definition: AgoraBase.h:86
const char * user_id_t
Definition: AgoraBase.h:1198
Definition: IAgoraService.h:33
Definition: AgoraBase.h:3254
Definition: NGIAgoraVideoTrack.h:192
Definition: NGIAgoraAudioTrack.h:325
Definition: NGIAgoraVideoTrack.h:393
Definition: AgoraBase.h:1851
Definition: AgoraBase.h:3015