Rate this page:

AudioFileEventTypes

Audio file events listener to be notified about audio file events

Constants

Started

Copy URL

Invoked when the audio file playing is started. The handler function receives an 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

    True if the audio file has started successfully

Stopped

Copy URL

Invoked when the audio file playing is stopped. The handler function receives an 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

    True if the audio file has stopped successfully