|
NIMSDK-AOS
9.21.10
|
Public 成员函数 | |
| void | onTakeSnapshotResult (String account, boolean success, String file) |
| 截取用户图像后的结果通知。 更多... | |
| void | onAVRecordingStart (String account, String fileDir) |
| 用户音视频数据录制开始 更多... | |
| void | onAudioRecordingStart (String fileDir) |
| 语音录制开始 更多... | |
| void | onAVRecordingCompletion (String account, String filePath) |
| 用户音视频数据录制结束 更多... | |
| void | onAudioRecordingCompletion (String filePath) |
| 语音录制结束。 更多... | |
| void | onLowStorageSpaceWarning (long availableSize) |
| 存储空间不足警告,存储空间低于20M时开始出现警告,出现警告时请及时关闭所有的录制服务,当存储空间低于10M时会自动关闭所有的录制功能 更多... | |
| void | onAudioMixingProgressUpdated (long progressMs, long durationMs) |
| 汇报混音进度 更多... | |
| void | onAudioMixingEvent (int event) |
| 伴音事件通知 更多... | |
| void | onAudioEffectPreload (int effectId, int result) |
| 音效预加载结果回调 更多... | |
| void | onAudioEffectPlayEvent (int effectId, int event) |
| 音效播放事件回调 更多... | |
| void | onPublishVideoResult (int result) |
| 发布视频流回调 更多... | |
| void | onUnpublishVideoResult (int result) |
| 停止发布视频流回调 更多... | |
| void | onSubscribeVideoResult (String account, int videoType, int result) |
| 订阅视频流回调 更多... | |
| void | onUnsubscribeVideoResult (String account, int videoType, int result) |
| 取消订阅视频流回调 更多... | |
| void | onRemotePublishVideo (String account, int[] videoTypes) |
| 当远端用户开始发布视频流时回调 更多... | |
| void | onRemoteUnpublishVideo (String account) |
| 当远端用户停止发布视频流时回调 更多... | |
| void | onUnsubscribeAudioResult (int result) |
| 取消订阅所有的活跃音频流时回调 更多... | |
| void | onSubscribeAudioResult (int result) |
| 订阅所有的活跃音频流时回调 更多... | |
Public 成员函数 继承自 com.netease.nimlib.sdk.avchat.AVChatStateObserverLite | |
| void | onJoinedChannel (int code, String audioFile, String videoFile, int elapsed) |
| 服务器连接回调 更多... | |
| void | onUserJoined (String account) |
| 用户加入频道 更多... | |
| void | onUserLeave (String account, int event) |
| 用户离开频道 更多... | |
| void | onLeaveChannel () |
| 退出频道. 更多... | |
| void | onProtocolIncompatible (int status) |
| 双方协议版本不兼容 更多... | |
| void | onDisconnectServer (int code) |
| 从服务器断开连接会收到此通知。 更多... | |
| void | onNetworkQuality (String account, int quality, AVChatNetworkStats stats) |
| 网络状态发生变化 更多... | |
| void | onCallEstablished () |
| 会话成功建立. 更多... | |
| void | onDeviceEvent (int code, String desc) |
| 语音采集设备和视频采集设备事件通知 更多... | |
| void | onConnectionTypeChanged (int netType) |
| 客户端网络类型发生了变化 更多... | |
| void | onFirstVideoFrameAvailable (String account) |
| 用户第一帧视频数据绘制前通知. 更多... | |
| void | onFirstVideoFrameRendered (String account) |
| 第一帧绘制通知 更多... | |
| void | onVideoFrameResolutionChanged (String account, int width, int height, int rotate) |
| 用户画面尺寸改变通知 更多... | |
| void | onVideoFpsReported (String account, int fps) |
| 用户视频画面fps更新, 需要设置参数 AVChatParameters#KEY_VIDEO_FPS_REPORTED. 更多... | |
| boolean | onVideoFrameFilter (AVChatVideoFrame frame, boolean maybeDualInput) |
| 视频数据外部处理接口, 此接口需要同步执行. 更多... | |
| boolean | onVideoFrameFilter (final VideoFrame input, VideoFrame[] outputFrames, VideoFilterParameter filterParameter) |
| 视频数据外部处理接口, 此接口需要同步执行. 更多... | |
| boolean | onAudioFrameFilter (AVChatAudioFrame frame) |
| 语音数据处理接口, 不要改变数据的长度. 更多... | |
| void | onAudioDeviceChanged (int device, Set< Integer > set, boolean shouldSelect) |
| 音频设备变化 更多... | |
| void | onReportSpeaker (Map< String, Integer > speakers, int mixedEnergy) |
| 汇报正在说话的用户。 需要设置参数 AVChatParameters#KEY_AUDIO_REPORT_SPEAKER. 更多... | |
| void | onSessionStats (AVChatSessionStats sessionStats) |
| 实时统计信息 更多... | |
| void | onLiveEvent (int event) |
| 互动直播相关事件通知 更多... | |
在文件 AVChatStateObserver.java 第 15 行定义.
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioEffectPlayEvent | ( | int | effectId, |
| int | event | ||
| ) |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioEffectPreload | ( | int | effectId, |
| int | result | ||
| ) |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioMixingEvent | ( | int | event | ) |
伴音事件通知
| event | 事件类型 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioMixingProgressUpdated | ( | long | progressMs, |
| long | durationMs | ||
| ) |
汇报混音进度
| progressMs | 混音当前播放位置(单位毫秒, 未知情况为-1 |
| durationMs | 混音文件时长(单位毫秒, 未知情况为-1 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioRecordingCompletion | ( | String | filePath | ) |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAudioRecordingStart | ( | String | fileDir | ) |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAVRecordingCompletion | ( | String | account, |
| String | filePath | ||
| ) |
用户音视频数据录制结束
| account | 用户账号 |
| filePath | 录制文件路径,当发生视频清晰度等情况变化时会存在多个MP4文件 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onAVRecordingStart | ( | String | account, |
| String | fileDir | ||
| ) |
用户音视频数据录制开始
| account | 用户账号 |
| fileDir | 录制文件目录路径,当发生视频清晰度等情况变化时会存在多个MP4文件 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onLowStorageSpaceWarning | ( | long | availableSize | ) |
存储空间不足警告,存储空间低于20M时开始出现警告,出现警告时请及时关闭所有的录制服务,当存储空间低于10M时会自动关闭所有的录制功能
| availableSize | 可用空间 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onPublishVideoResult | ( | int | result | ) |
发布视频流回调
| result | 0为发布成功,非0为失败 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onRemotePublishVideo | ( | String | account, |
| int[] | videoTypes | ||
| ) |
当远端用户开始发布视频流时回调
| account | 用户Account |
| videoTypes | 当前用户发布的所有流类型,参考: NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES: 大流 NRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES: 小流 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onRemoteUnpublishVideo | ( | String | account | ) |
当远端用户停止发布视频流时回调
| account | 用户Account |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onSubscribeAudioResult | ( | int | result | ) |
订阅所有的活跃音频流时回调
| result | 0表示订阅成功,非0表示失败 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onSubscribeVideoResult | ( | String | account, |
| int | videoType, | ||
| int | result | ||
| ) |
订阅视频流回调
| account | 用户account |
| videoType | 订阅的流类型,参考: NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES: 大流 NRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES: 小流 |
| result | 0表示订阅成功,非0表示失败 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onTakeSnapshotResult | ( | String | account, |
| boolean | success, | ||
| String | file | ||
| ) |
截取用户图像后的结果通知。
| account | 被截图用户的账号 |
| success | 截图是否成功 |
| file | 截图成功后只想图像存储路径 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onUnpublishVideoResult | ( | int | result | ) |
停止发布视频流回调
| result | 0为停止发布成功,非0为失败 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onUnsubscribeAudioResult | ( | int | result | ) |
取消订阅所有的活跃音频流时回调
| result | 0表示取消订阅成功,非0表示失败 |
| void com.netease.nimlib.sdk.avchat.AVChatStateObserver.onUnsubscribeVideoResult | ( | String | account, |
| int | videoType, | ||
| int | result | ||
| ) |
取消订阅视频流回调
| videoType | 取消订阅的流类型,参考: NRtcConstants.Subscribe#VIDEO_TYPE_HIGH_RES: 大流 NRtcConstants.Subscribe#VIDEO_TYPE_LOW_RES: 小流 |
| account | 用户account |
| result | 0表示取消订阅成功,非0表示失败 |
1.8.11