Class: Video

Video

動画を管理するクラス、Next2DのVideoクラスとして出力されます。
The output is as the Video class of Next2D, a class that manages video.

new instance.Video (object)

NameTypeDescription
objectobject

Extends

  • Instance

Members

autoPlay boolean

動画の自動再生のon/off設定
Video autoplay on/off setting.

Default Value:
  • true

buffer string

動画データ(buffer)をバイナリデータとして利用
Video data (buffer) is used as binary data

Default Value:
  • ""

defaultSymbol readonly

シンボルを指定した時の継承先を返す
Returns the inheritance destination when a symbol is specified.

height number

動画の高さ
Video height

loop boolean

動画再生のループのon/off設定
Video playback loop on/off setting

Default Value:
  • false

volume number

動画音声の設定
Video audio settings.

Default Value:
  • 100

width number

動画の幅
Video width

Methods

clone ()Video

Videoクラスを複製
Duplicate Video class

Returns:
TypeDescription
Video

createInstance ()next2d.display.Shape

Next2DのDisplayObjectを生成
Generate Next2D DisplayObject

Returns:
TypeDescription
next2d.display.Shape

delayImage ()void

動画データの読み込み後にキャプチャー画像を生成
Generate captured images after loading video data

Returns:
TypeDescription
void

getBounds (matrix)object

表示領域(バウンディングボックス)のObjectを返す
Returns the Object of the display area (bounding box)

NameTypeDefaultDescription
matrixarraynulloptional
Returns:
TypeDescription
object

getPreview ()HTMLVideoElement

プレビュー画面に表示する、HTMLVideoElementを返す
Returns an HTMLVideoElement to be displayed on the preview screen.

Returns:
TypeDescription
HTMLVideoElement

showController (place, name)void

このアイテムが設定されたDisplayObjectが選択された時
内部情報をコントローラーに表示する
When a DisplayObject with this item set is selected,
internal information is displayed on the controller.

NameTypeDefaultDescription
placeobject
namestring""optional
Returns:
TypeDescription
void

toImage (width, height, place, range, static_frame, preview)HTMLImageElement

Next2DのBitmapDataクラスを経由してImageクラスを生成
Generate Image class via Next2D BitmapData class

NameTypeDefaultDescription
widthnumber
heightnumber
placeobject
rangeobjectnulloptional
static_framenumber0optional
previewbooleanfalseoptional
Returns:
TypeDescription
HTMLImageElement

toObject ()object

クラス内の変数をObjectにして返す
Return variables in a class as Objects

Returns:
TypeDescription
object

toPublish ()object

書き出し用のObjectを返す
Returns an Object for export

Returns:
TypeDescription
object