NIMSDK-AOS  10.6.0
AVChatStateObserver.java
浏览该文件的文档.
1 /*
2  * Copyright (c) 2014-2018 NetEase, Inc.
3  * All right reserved.
4  */
5 
6 package com.netease.nimlib.sdk.avchat;
7 
8 
10 import com.netease.nrtc.sdk.NRtcConstants;
11 
15 public interface AVChatStateObserver extends AVChatStateObserverLite {
16 
17 
26  void onTakeSnapshotResult(String account, boolean success, String file);
27 
28 
37  void onAVRecordingStart(String account, String fileDir);
38 
46  void onAudioRecordingStart(String fileDir);
47 
48 
57  void onAVRecordingCompletion(String account, String filePath);
58 
66  void onAudioRecordingCompletion(String filePath);
67 
75  void onLowStorageSpaceWarning(long availableSize);
76 
83  void onAudioMixingProgressUpdated(long progressMs, long durationMs);
84 
95  void onAudioMixingEvent(int event);
96 
107  void onAudioEffectPreload(int effectId, int result);
108 
109 
117  void onAudioEffectPlayEvent(int effectId, int event);
118 
119 
125  void onPublishVideoResult(int result);
126 
127 
133  void onUnpublishVideoResult(int result);
134 
135 
145  void onSubscribeVideoResult(String account, int videoType, int result);
146 
147 
157  void onUnsubscribeVideoResult(String account, int videoType, int result);
158 
159 
168  void onRemotePublishVideo(String account, int[] videoTypes);
169 
170 
176  void onRemoteUnpublishVideo(String account);
177 
178 
184  void onUnsubscribeAudioResult(int result);
185 
186 
192  void onSubscribeAudioResult(int result);
193 
194 }
void onAudioEffectPreload(int effectId, int result)
音效预加载结果回调
void onAudioMixingEvent(int event)
伴音事件通知
void onPublishVideoResult(int result)
发布视频流回调
void onRemoteUnpublishVideo(String account)
当远端用户停止发布视频流时回调
void onAudioRecordingCompletion(String filePath)
语音录制结束。
void onUnsubscribeVideoResult(String account, int videoType, int result)
取消订阅视频流回调
void onUnpublishVideoResult(int result)
停止发布视频流回调
void onAudioRecordingStart(String fileDir)
语音录制开始
void onAudioMixingProgressUpdated(long progressMs, long durationMs)
汇报混音进度
void onUnsubscribeAudioResult(int result)
取消订阅所有的活跃音频流时回调
void onAVRecordingCompletion(String account, String filePath)
用户音视频数据录制结束
void onSubscribeAudioResult(int result)
订阅所有的活跃音频流时回调
void onSubscribeVideoResult(String account, int videoType, int result)
订阅视频流回调
void onTakeSnapshotResult(String account, boolean success, String file)
截取用户图像后的结果通知。
void onAVRecordingStart(String account, String fileDir)
用户音视频数据录制开始
void onLowStorageSpaceWarning(long availableSize)
存储空间不足警告,存储空间低于20M时开始出现警告,出现警告时请及时关闭所有的录制服务,当存储空间低于10...
void onRemotePublishVideo(String account, int[] videoTypes)
当远端用户开始发布视频流时回调
void onAudioEffectPlayEvent(int effectId, int event)
音效播放事件回调