Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VideoAsset

Video file stored in Space. Can be displayed in {@link GUI.VideoView|2D} or 3D context.

Supported file formats

  • .mp4

See VideoItem

See {@link GUI.VideoView}

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

aspectRatio: number

Returns aspect ratio of this video, calculated width divided by height.

Example:

  • Video resolution of 100 px width and 50 px height returns 2
  • Video resolution of 50 px width and 100 px height returns 0.5
returns

aspect ratio of video file.

name: string
returns

original name of this asset derived from uploaded file.

type: "image" | "image_360" | "image_gif" | "sound" | "video" | "model"
returns

asset type.

Methods

  • Creates a VideoItem from this VideoAsset.

    Parameters

    • position: Vector3

      initial world space position of VideoItem.

    Returns VideoItem

    created VideoItem.