Rate this page:

VIAudioFileDelegate

Delegate that may be used to handle audio file events.

Methods

audioFile:didStartPlaying:

Optional
Copy URL
audioFile:didStartPlaying:(audioFile: 

VIAudioFile *

,
playbackError:

nullable NSError *

):

void

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
audioFile:didStopPlaying:(audioFile: 

nullable VIAudioFile *

,
playbackError:

nullable NSError *

):

void

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