Rate this page:

VIAudioFileDelegate

Delegate that may be used to handle audio file events.

Methods

audioFile:didStartPlaying:

Optional
Copy URL
- (

void

)audioFile:(

VIAudioFile *

)audioFile
didStartPlaying:(

nullable NSError *

)playbackError

Triggered to notify if an audio file playback is started successfully or failed with an error.

Parameters

  • audioFile:

    VIAudioFile *

    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
Copy URL
- (

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