Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VideoAsset

Hierarchy

Implements

Index

Constructors

constructor

  • new VideoAsset(id: string, assetPath: string, width: number, height: number, system: VideoSystem, loop: boolean, useRealSize: boolean): VideoAsset

Properties

Private _loop

_loop: boolean

Private _system

_system: VideoSystem

Private _useRealSize

_useRealSize: boolean

height

height: number

id

id: string

onDestroyed

onDestroyed: Trigger<Asset>

originalPath

originalPath: string

path

path: string

realHeight

realHeight: number

realWidth

realWidth: number

width

width: number

Methods

Private _assetPathFilter

  • _assetPathFilter(path: string): string
  • Parameters

    • path: string

    Returns string

Private _load

asSurface

destroy

  • destroy(): void

destroyed

  • destroyed(): boolean

getPlayer

inUse

  • inUse(): boolean
  • Returns boolean

play

  • Parameters

    • Optional loop: boolean

    Returns VideoPlayer

stop

  • stop(): void
  • Returns void

Generated using TypeDoc