Error Index
You can receive the error code and its details as a callback(OnAIPlayerError) and take appropriate action.
When an error occurs, the OnAIPlayerError(AIError)
callback function is called. AIError
, the argument of this function, contains information about the error. AIError.errorType
tells what kind of error has occurred, and you can find out the details of the error as JSON String through the GetMessage()
function.
By using this message, you can take action when a specific error occurs. For example, code 1402
may mean Token expired, and in this case, call AuthStart()
to refresh the token.
Check the full error types here.