Error JavaScript APIs (Player V2 Deprecated)

Error JavaScript APIs can be used to get error codes and error text.

Error Properties

Note: This software is deprecated. Use the latest version.

The following table describes all the JavaScript error properties.

Function Description
getErrorCode

Return the current error code, if the code exists and if the current state is error.

Format: Read-only

Type: String

Return Value: Returns the error's localized error message.

getErrorText

Get the current text of the error, if one exists.

Format: read-only

Type: String

Return Value: Error's localized error message.

Example: "This video is not authorized for this domain. Please contact the administrator."

Was this article helpful?