public interface AVChatStateObserver extends AVChatStateObserverLite
Modifier and Type | Method and Description |
---|---|
void |
onAudioEffectPlayEvent(int effectId,
int event)
Callback for audio effect playback
|
void |
onAudioEffectPreload(int effectId,
int result)
Callback for audio effect preload result
|
void |
onAudioMixingEvent(int event)
Callbacks for audio mixing events
|
void |
onAudioMixingProgressUpdated(long progressMs,
long durationMs)
Get notified of the audio mixing progress
|
void |
onAudioRecordingCompletion(java.lang.String filePath)
Get notified when audio recording is complete
|
void |
onAudioRecordingStart(java.lang.String fileDir)
Get notified when audio recording starts
|
void |
onAVRecordingCompletion(java.lang.String account,
java.lang.String filePath)
Get notified when video recording is complete
|
void |
onAVRecordingStart(java.lang.String account,
java.lang.String fileDir)
Get notified when video recording starts
|
void |
onLowStorageSpaceWarning(long availableSize)
Low storage warning.
|
void |
onPublishVideoResult(int result)
Get notified when a video stream is published
|
void |
onRemotePublishVideo(java.lang.String account,
int[] videoTypes)
Get notified when a remote user publishes a video stream
|
void |
onRemoteUnpublishVideo(java.lang.String account)
Get notified when a remote user unpublishes a video stream
|
void |
onSubscribeAudioResult(int result)
Get notified when all audio streams are subscribed
|
void |
onSubscribeVideoResult(java.lang.String account,
int videoType,
int result)
Get notified when a user subscribes to a video stream
|
void |
onTakeSnapshotResult(java.lang.String account,
boolean success,
java.lang.String file)
Get notified when users take a screen shot
|
void |
onUnpublishVideoResult(int result)
Get notified when a video streaming is unpublished
|
void |
onUnsubscribeAudioResult(int result)
Get notified when all audio streams are unsubscribed
|
void |
onUnsubscribeVideoResult(java.lang.String account,
int videoType,
int result)
Get notified when a user unsubscribes from a video stream
|
onAudioDeviceChanged, onAudioFrameFilter, onCallEstablished, onConnectionTypeChanged, onDeviceEvent, onDisconnectServer, onFirstVideoFrameAvailable, onFirstVideoFrameRendered, onJoinedChannel, onLeaveChannel, onLiveEvent, onNetworkQuality, onProtocolIncompatible, onReportSpeaker, onSessionStats, onUserJoined, onUserLeave, onVideoFpsReported, onVideoFrameFilter, onVideoFrameFilter, onVideoFrameResolutionChanged
void onTakeSnapshotResult(java.lang.String account, boolean success, java.lang.String file)
account
- accountsuccess
- operation resultfile
- file path of the screen shotAVChatManager.takeSnapshot(String)
void onAVRecordingStart(java.lang.String account, java.lang.String fileDir)
account
- accountfileDir
- recording file path. If resolutions change, mutilple MP4 files will be generated.AVChatManager.startAVRecording(String)
,
AVChatManager.stopAVRecording(String)
void onAudioRecordingStart(java.lang.String fileDir)
fileDir
- audio file pathAVChatManager.startAudioRecording()
,
AVChatManager.stopAudioMixing()
void onAVRecordingCompletion(java.lang.String account, java.lang.String filePath)
account
- accountfilePath
- recording file path. If the resolution changes, multiple MP4 files will be generated.AVChatManager.startAVRecording(String)
,
AVChatManager.stopAVRecording(String)
void onAudioRecordingCompletion(java.lang.String filePath)
filePath
- audio file pathAVChatManager.startAudioRecording()
,
AVChatManager.stopAudioMixing()
void onLowStorageSpaceWarning(long availableSize)
availableSize
- Available sizeAVChatManager.startAVRecording(String)
,
AVChatManager.startAudioRecording()
void onAudioMixingProgressUpdated(long progressMs, long durationMs)
progressMs
- current playback position of the mixing audio in milliseconds. -1: unknown errordurationMs
- duration of a mixing audio in milliseconds. -1: unknown errorvoid onAudioMixingEvent(int event)
void onAudioEffectPreload(int effectId, int result)
effectId
- Effect IDresult
- preload resultAVChatAudioEffectEvent.AUDIO_EFFECT_PRELOAD_SUCCESS
,
AVChatAudioEffectEvent.AUDIO_EFFECT_PRELOAD_COUNT_LIMIT
,
AVChatAudioEffectEvent.AUDIO_EFFECT_PRELOAD_TOO_LONG
,
AVChatAudioEffectEvent.AUDIO_EFFECT_PRELOAD_FAILED
void onAudioEffectPlayEvent(int effectId, int event)
effectId
- Effect IDevent
- event typeAVChatAudioEffectEvent.AUDIO_EFFECT_PLAY_COMPLETE
void onPublishVideoResult(int result)
result
- 0: success. Others: failurevoid onUnpublishVideoResult(int result)
result
- 0: success. Others: failurevoid onSubscribeVideoResult(java.lang.String account, int videoType, int result)
account
- user accountvideoType
- stream type. For more information, see NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES
: high quality streamNRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES
: low quality streamresult
- 0: success. Others: failurevoid onUnsubscribeVideoResult(java.lang.String account, int videoType, int result)
videoType
- stream type. For more information, see NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES
: high quality streamNRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES
: low quality streamaccount
- user accountresult
- 0: success. Others: failurevoid onRemotePublishVideo(java.lang.String account, int[] videoTypes)
account
- user accountvideoType
- all stream type. For more information, see NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES
: high quality streamNRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES
: low quality streamvoid onRemoteUnpublishVideo(java.lang.String account)
account
- user accountvoid onUnsubscribeAudioResult(int result)
result
- 0: success. Others: failurevoid onSubscribeAudioResult(int result)
result
- 0: success. Others: failure