VideoEventData

lumin. VideoEventData

Event subclass sent by VideoNode during media playback.

The X and Y fields are used to store different data for differnet event types:


  • kVideoSizeChanged: X is width, Y is height

  • kBufferingUpdate: X is the buffering percent, Y is unused

  • kInfo: X is the info or warning code, Y is an info code to provide more details

  • kError: X is the type of fatal error, Y is the MediaError code

Extends

Methods

getAffectedNodeId() → {number}

Returns the ID of the VideoNode that was affected.

Returns:

the ID of the VideoNode that was affected

Type
number

getPrismId() → {number}

Inherited From:

Returns the Prism ID of the target Prism.

Returns:

the Prism ID of the target Prism.

Type
number

getVideoEventType() → {lumin.VideoEventType}

Returns the video event type.

Returns:

the video event type

Type
lumin.VideoEventType

getXPos() → {number}

Returns event-specific data (see class description).

Returns:

event-specific data

Type
number

getYPos() → {number}

Returns event-specific data (see class description).

Returns:

event-specific data

Type
number

isInputEventType() → {boolean}

Inherited From:

Returns true if this is an input event (a subclass of InputEventData).

Returns:

true if this is an input event

Type
boolean

toString() → {string}

Inherited From:

Returns a string representation of this event for debug purposes.

Returns:
Type
string