Options
All
  • Public
  • Public/Protected
  • All
Menu

Use this component as a video player. This component is required to play a video clip, and to set options such as whether or not to display the video player controls, whether to loop the video, and so on.

Hierarchy

Index

Constructors

constructor

  • new VideoPlayer(clip?: Entity, controls?: boolean, loop?: boolean, currentTime?: number): VideoPlayer
  • Parameters

    • Optional clip: Entity
    • Optional controls: boolean
    • Optional loop: boolean
    • Optional currentTime: number

    Returns VideoPlayer

Properties

clip

clip: Entity

The clip entity. Attach a VideoClip to it to play a video. The video is muted by default.

controls

controls: boolean

If true, video controls (Play/Pause/FullScreen/Volume) are displayed.

currentTime

currentTime: number

Current playback time, in seconds

loop

loop: boolean

If true, the player automatically seeks back to the start of the video after reaching the end. This attribute is ignored if the entity has a VideoPlayerAutoDeleteOnEnd component.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static clip

clip: EntityComponentFieldDesc

Static controls

Static loop

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc