# InnerAudioContext.onError(function callback)

with Promise style call: Not supported

Mini Program plugin: Support

Listen for audio playback error events

# parameter

# function callback

Callback function for audio playback error event

# parameter

# Object res
attribute type Introductions
errMsg string
errCode number

errCode Legal value

value Introductions Minimum version
10001 System error
10002 Network error
10003 File error
10004 Format error
-1 Unknown error

# Tips

  1. errCode=100001 When, if errMsg In INNERCODE -11828 Please check it first response header Is it missing? Content-Length
  2. errCode=100001 When, if errMsg In SystemErrCode: 200333420, please check the file encoding format and fileExtension Are consistent