Class: VideoEvent

VideoEvent

ビデオを再生または停止すると、VideoEvent オブジェクトを送出します。

When a video is played or stopped, it sends out a VideoEvent object.

new next2d.events.VideoEvent (type, bubbles, cancelable, bytes_loaded, bytes_total)

NameTypeDefaultDescription
typestring
bubblesbooleantrueoptional
cancelablebooleanfalseoptional
bytes_loadednumber0optional
bytes_totalnumber0optional

Extends

  • Event

Members

next2d.events.VideoEvent.namespace string staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.events.VideoEvent

next2d.events.VideoEvent.PAUSE staticconstant

pause イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a pause event object.

Default Value:
  • pause

next2d.events.VideoEvent.PLAY staticconstant

play イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a play event object.

Default Value:
  • play

next2d.events.VideoEvent.PLAY_END staticconstant

playEnd イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a playEnd event object.

Default Value:
  • playEnd

next2d.events.VideoEvent.PLAY_START staticconstant

playStart イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a playStart event object.

Default Value:
  • playStart

next2d.events.VideoEvent.PROGRESS staticconstant

progress イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a progress event object.

Default Value:
  • progress

next2d.events.VideoEvent.SEEK staticconstant

seek イベントオブジェクトの type プロパティ値を定義します。
Defines the value of the type property of a seek event object.

Default Value:
  • seek

bytesLoaded readonly

リスナーがイベントを処理しているときに読み込まれたアイテム数またはバイト数です。
The number of items or bytes loaded when the listener processes the event.

Default Value:
  • 0

bytesTotal readonly

読み込みプロセスが成功した場合に読み込まれるアイテムまたはバイトの総数です。
The total number of items or bytes that will be loaded
if the loading process succeeds.

Default Value:
  • 0

namespace string constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.events.VideoEvent

Methods

next2d.events.VideoEvent.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class VideoEvent]
Returns:
TypeDescription
string

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Returns:
TypeDescription
string