NIMMediaManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMMediaManagerProtocol.h |
– playAudio:didBeganWithError:
Callback for playing an audio file
- (void)playAudio:(NSString *)filePath didBeganWithError:(nullable NSError *)error
Parameters
filePath |
audio file path |
---|---|
error |
Error message |
Discussion
Callback for playing an audio file
Declared In
NIMMediaManagerProtocol.h
– playAudio:didCompletedWithError:
Callback for audio playback completion
- (void)playAudio:(NSString *)filePath didCompletedWithError:(nullable NSError *)error
Parameters
filePath |
audio file path |
---|---|
error |
Error message |
Discussion
Callback for audio playback completion
Declared In
NIMMediaManagerProtocol.h
– playAudio:progress:
Callback for audio playback progress
- (void)playAudio:(NSString *)filePath progress:(float)value
Parameters
filePath |
audio file path |
---|---|
value |
playback progress 0.0 - 1.0 |
Discussion
Callback for audio playback progress
Declared In
NIMMediaManagerProtocol.h
– stopPlayAudio:didCompletedWithError:
Callback for stopping audio playback
- (void)stopPlayAudio:(NSString *)filePath didCompletedWithError:(nullable NSError *)error
Parameters
filePath |
audio file path |
---|---|
error |
Error message |
Discussion
Callback for stopping audio playback
Declared In
NIMMediaManagerProtocol.h
– playAudioInterruptionBegin
Callback for interrupting audio playback
- (void)playAudioInterruptionBegin
Discussion
Callback for interrupting audio playback
Declared In
NIMMediaManagerProtocol.h
– playAudioInterruptionEnd
Callback for audio playback interruption end
- (void)playAudioInterruptionEnd
Discussion
Callback for audio playback interruption end
Declared In
NIMMediaManagerProtocol.h
– recordAudio:didBeganWithError:
Callback for audio recording
- (void)recordAudio:(nullable NSString *)filePath didBeganWithError:(nullable NSError *)error
Parameters
filePath |
the recorded audio file path |
---|---|
error |
Error message |
Discussion
Callback for audio recording
If recording fails, filePath may be nil.
Declared In
NIMMediaManagerProtocol.h
– recordAudio:didCompletedWithError:
Callback for audio recording completion
- (void)recordAudio:(nullable NSString *)filePath didCompletedWithError:(nullable NSError *)error
Parameters
filePath |
The recorded audio file path |
---|---|
error |
Error message |
Discussion
Callback for audio recording completion
Declared In
NIMMediaManagerProtocol.h
– recordAudioDidCancelled
Callback for canceling audio recording
- (void)recordAudioDidCancelled
Discussion
Callback for canceling audio recording
Declared In
NIMMediaManagerProtocol.h
– recordAudioProgress:
Callback for audio recording progress
- (void)recordAudioProgress:(NSTimeInterval)currentTime
Parameters
currentTime |
Current recording time |
---|
Discussion
Callback for audio recording progress
Declared In
NIMMediaManagerProtocol.h
– recordAudioInterruptionBegin
Callback for interruption start
- (void)recordAudioInterruptionBegin
Discussion
Callback for interruption start
Declared In
NIMMediaManagerProtocol.h
– recordAudioInterruptionEnd
Callback for interruption end
- (void)recordAudioInterruptionEnd
Discussion
Callback for interruption end
Declared In
NIMMediaManagerProtocol.h