VIAudioFileDelegate
Delegate that may be used to handle audio file events.
Methods
audioFile:didStartPlaying:
Optional
- (void
)audioFile:()audioFile
didStartPlaying:(nullable NSError *
)playbackError
Triggered to notify if an audio file playback is started successfully or failed with an error.
Parameters
audioFile:
Audio file that triggered the event
playbackError:
nullable NSError *
Error with detailed information if playback has failed to start or nil if it is started
Returns
type:
void
audioFile:didStopPlaying:
Optional
- (void
)audioFile:(nullable VIAudioFile *
)audioFile
didStopPlaying:(nullable NSError *
)playbackError
Triggered to notify that an audio file playback has been stopped. Called only if [VIAudioFileDelegate audioFile:didStartPlaying:] succeed.
Parameters
audioFile:
nullable VIAudioFile *
Audio file that triggered the event
playbackError:
nullable NSError *
Error with detailed information if playback has failed or nil if it is stopped successfully
Returns
type:
void