Implements a playable media URL for local resources

Remarks

A media URL is an annotated URL, consisting of

  • an object URL for a blob, representing a media file
  • the full name (including a possible path) of the original media file (from the disk or from within a ZIP-file)

Constructors

Properties

Accessors

Constructors

  • Parameters

    • resourceName: string

      A name for the resource. For online URL's: a simplified resource name, derived from the URL; For files: the full name (including a possible path) of the original media file (from the disk or from within a ZIP-file)

    • url: string

      The online URL, or an object URL representing the playable blob

    • size: null | number
    • mediaType: null | string

    Returns MediaUrl

Properties

mediaType: null | string

The MIME type of the content

Remarks

This is typically only used for media files from the disk or from within a ZIP-file.

resourceName: string

A name for the resource. For online URL's: a simplified resource name, derived from the URL; For files: the full name (including a possible path) of the original media file (from the disk or from within a ZIP-file)

size: null | number

The size of the content in bytes

Remarks

This is typically only used for media files from the disk or from within a ZIP-file.

url: string

The online URL, or an object URL representing the playable blob

Accessors

  • get source(): string
  • Gets the source of the media. For online URL's: the full URL (from the url property); For files: the full name (from the resourceName property)

    Returns string