Error ActionScript APIs (Player V2 Deprecated)

Error ActionScript APIs enable you to get error codes, the associated error message, and player state.

Error Properties

Important: Ooyala Player V2 is deprecated and is scheduled to be disabled on 2018-01-31. After that date, Player V2 will no longer play your video or audio content. Customers still using Player V2 need to migrate to Player V4 (see Player V4.
Note: This software is deprecated. Use the latest version.

The following table describes all the ActionScript properties that are associated with errors.

Function Description
ErrorCode

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

Bindable

Format: read-only

Type: String

ReturnValues: Error's localized title. Returns the empty string if there is no specific title.

getErrorText

Returns text if the current state is error.

Bindable

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."

state

Current player state.

Bindable

Format: read-only

Return Values: playing, paused, buffering, channel, or error

Error Event Handling

The following table describes all the ActionScript events that are associated with errors.

Event Parameters of the third argument to callback Description
stateChanged

Player state shift between playing, paused, buffering, or error

Type: Object

The state has changed.

해당 내용이 도움 되었습니까?