Class s7sdk.event.VideoEvent
A VideoEvent
is dispatched by VideoPlayer
component whenever video playback state changes.
Constructor Attributes | Constructor Name and Description |
---|---|
s7sdk.event.VideoEvent(type, data, bubbles)
|
Field Attributes | Field Name and Description |
---|---|
<static> |
s7sdk.event.VideoEvent.NOTF_CURRENT_TIME
Defines the value of the
type property for a VideoEvent to report the current playback time. |
<static> |
s7sdk.event.VideoEvent.NOTF_DURATION
Defines the value of the
type property for a VideoEvent object. |
<static> |
s7sdk.event.VideoEvent.NOTF_LOAD_PROGRESS
Defines the value of the
type property for a VideoEvent to notify of active loading in progress. |
<static> |
s7sdk.event.VideoEvent.NOTF_METADATA_LOAD_COMPLETE
This event is dispatched by the
VideoPlayer component to notify that metadata is loaded. |
<static> |
s7sdk.event.VideoEvent.NOTF_NAVIGATION
This event is dispatched by the
VideoPlayer to notify that navigation data is available or modified. |
<static> |
s7sdk.event.VideoEvent.NOTF_SEEK
Defines the value of the
type property for a VideoEvent event object. |
<static> |
s7sdk.event.VideoEvent.NOTF_VIDEO_END
This event is dispatched by the
VideoPlayer to notify when the current playback ended. |
<static> |
s7sdk.event.VideoEvent.NOTF_VOLUME
Defines the value of the
type property for a VideoEvent event object. |
Class Detail
s7sdk.event.VideoEvent(type, data, bubbles)
- Parameters:
- {String} type
- Defines the value of the type property.
- {Number} data
- event data. For
VideoEvent.NOTF_VOLUME
contains volume level in range from 0 to 1; for other types ofVideoEvent
contains video time in ms. - {Boolean} bubbles
- Defines whether the event bubbles.
Field Detail
<static>
s7sdk.event.VideoEvent.NOTF_CURRENT_TIME
Defines the value of the
type
property for a VideoEvent
to report the current playback time.
<static>
s7sdk.event.VideoEvent.NOTF_DURATION
Defines the value of the
type
property for a VideoEvent
object.
This event notifies that the video duration has changed.
<static>
s7sdk.event.VideoEvent.NOTF_LOAD_PROGRESS
Defines the value of the
type
property for a VideoEvent
to notify of active loading in progress.
<static>
s7sdk.event.VideoEvent.NOTF_METADATA_LOAD_COMPLETE
This event is dispatched by the
VideoPlayer
component to notify that metadata is loaded.
<static>
s7sdk.event.VideoEvent.NOTF_NAVIGATION
This event is dispatched by the
VideoPlayer
to notify that navigation data is available or modified.
<static>
s7sdk.event.VideoEvent.NOTF_SEEK
Defines the value of the
type
property for a VideoEvent
event object. This
event is dispatched by the VideoPlayer
to notify when a seek is performed.
<static>
s7sdk.event.VideoEvent.NOTF_VIDEO_END
This event is dispatched by the
VideoPlayer
to notify when the current playback ended.
If VideoPlayer's
loop
modifier set in 1
playback never stops and this event never fires.
<static>
s7sdk.event.VideoEvent.NOTF_VOLUME
Defines the value of the
type
property for a VideoEvent
event object. This event is
dispatched when the volume of the target component has changed.