Rate this page:

AudioFileEventTypes

Audio file events listener to be notified about audio file events.

Constants

Started

Copy URL

Triggered when the audio file playing is started. Handler function receives the event with the following parameters as an argument.

Parameters

  • audioFile:

    AudioFile

    Audio file that triggered the event.

  • error:

    string

    Error code on iOS if the audio file failed to start.

  • name:

    string

    Name of the event.

  • result:

    boolean

    Whether the audio file has started successfully.

Stopped

Copy URL

Triggered when the audio file playing is stopped. Handler function receives the event with the following parameters as an argument.

Parameters

  • audioFile:

    AudioFile

    Audio file that triggered the event.

  • error:

    string

    Error code on iOS if the audio file failed to stop.

  • name:

    string

    Name of the event.

  • result:

    boolean

    Whether the audio file has stopped successfully.