NIMMediaManagerDelegate Protocol Reference

Conforms to NSObject
Declared in NIMMediaManagerProtocol.h

Overview

多媒体委托

– playAudio:didBeganWithError:

开始播放音频的回调

- (void)playAudio:(NSString *)filePath didBeganWithError:(nullable NSError *)error

Parameters

filePath

音频文件路径

error

错误信息

Discussion

开始播放音频的回调

Declared In

NIMMediaManagerProtocol.h

– playAudio:didCompletedWithError:

播放完音频的回调

- (void)playAudio:(NSString *)filePath didCompletedWithError:(nullable NSError *)error

Parameters

filePath

音频文件路径

error

错误信息

Discussion

播放完音频的回调

Declared In

NIMMediaManagerProtocol.h

– playAudio:progress:

播放完音频的进度回调

- (void)playAudio:(NSString *)filePath progress:(float)value

Parameters

filePath

音频文件路径

value

播放进度 0.0 - 1.0

Discussion

播放完音频的进度回调

Declared In

NIMMediaManagerProtocol.h

– stopPlayAudio:didCompletedWithError:

停止播放音频的回调

- (void)stopPlayAudio:(NSString *)filePath didCompletedWithError:(nullable NSError *)error

Parameters

filePath

音频文件路径

error

错误信息

Discussion

停止播放音频的回调

Declared In

NIMMediaManagerProtocol.h

– playAudioInterruptionBegin

播放音频开始被打断回调

- (void)playAudioInterruptionBegin

Discussion

播放音频开始被打断回调

Declared In

NIMMediaManagerProtocol.h

– playAudioInterruptionEnd

播放音频结束被打断回调

- (void)playAudioInterruptionEnd

Discussion

播放音频结束被打断回调

Declared In

NIMMediaManagerProtocol.h

– recordAudio:didBeganWithError:

开始录制音频的回调

- (void)recordAudio:(nullable NSString *)filePath didBeganWithError:(nullable NSError *)error

Parameters

filePath

录制的音频的文件路径

error

错误信息

Discussion

开始录制音频的回调

如果录音失败,filePath 有可能为 nil

Declared In

NIMMediaManagerProtocol.h

– recordAudio:didCompletedWithError:

录制音频完成后的回调

- (void)recordAudio:(nullable NSString *)filePath didCompletedWithError:(nullable NSError *)error

Parameters

filePath

录制完成的音频文件路径

error

错误信息

Discussion

录制音频完成后的回调

Declared In

NIMMediaManagerProtocol.h

– recordAudioDidCancelled

录音被取消的回调

- (void)recordAudioDidCancelled

Discussion

录音被取消的回调

Declared In

NIMMediaManagerProtocol.h

– recordAudioProgress:

音频录制进度更新回调

- (void)recordAudioProgress:(NSTimeInterval)currentTime

Parameters

currentTime

当前录制的时间

Discussion

音频录制进度更新回调

Declared In

NIMMediaManagerProtocol.h

– recordAudioInterruptionBegin

录音开始被打断回调

- (void)recordAudioInterruptionBegin

Discussion

录音开始被打断回调

Declared In

NIMMediaManagerProtocol.h

– recordAudioInterruptionEnd

录音结束被打断回调

- (void)recordAudioInterruptionEnd

Discussion

录音结束被打断回调

Declared In

NIMMediaManagerProtocol.h