Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMedia

An interface for media resources

Hierarchy

Index

Properties

Methods

Properties

error

error: Error | undefined

Any loading or fatal errors that have occurred in the resource

loaded

loaded: boolean

Determines if the resource is fully loaded

loading

loading: boolean

Determines if the resource is currently loading

unloaded

unloaded: boolean

Determines if the resource has been unloaded and is now invalid

url

url: Url

The location that the media was loaded from. Can be a local resource with file:// scheme

Methods

unload

  • unload(): Promise<void>
  • Releases the resource. Is reentrant, a released resource can be released again without error. Will possibly set unloaded to true, however, it is not required to.

    Returns Promise<void>