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

Event is triggered to notify if the playing of the audio file is started successfully or failed with the error.

Parameters

  • audioFile:

    VIAudioFile *

    Audio file that triggered the event.

  • playbackError:

    nullable NSError *

    Error with detailed information if playing 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

Event is triggered to notify that the playing of the audio file was stopped. Called only if [VIAudioFileDelegate audioFile:didStartPlaying:] was succeed.

Parameters

  • audioFile:

    nullable VIAudioFile *

    Audio file that triggered the event.

  • playbackError:

    nullable NSError *

    Error with detailed information if playing failed or nil if it is stopped successfully.

Returns

  • type:

    void