Skip to content

InnerAudioContext.onError ​

JS
 InnerAudioContext.onError(function callback)

Listens for the audio playback error event.

Parameters

  • function callback: Callback function for the audio playback error event.

Parameters of the callback function

  • Object res: Returns information about the audio playback error.

res properties:

PropertyTypeDescription
errMsgstringError message
errCodenumberError code; see the table below for valid values

Valid values of errCode:

ValueDescription
10001System error
10002Network error
10003File error
10004Format error
-1Unknown error