API Documentation for: 0.6.0
Show:

AbstractMediaLoader Class

Module: PreloadJS

The AbstractMediaLoader is a base class that handles some of the shared methods and properties of loaders that handle HTML media elements, such as Video and Audio.

Constructor

AbstractMediaLoader

(
  • loadItem
  • preferXHR
  • type
)

Parameters:

Item Index

Methods

_createTag

() private

Defined in _createTag:77

Creates a new tag for loading if it doesn't exist yet.

_formatResult

(
  • loader
)
HTMLVideoElement | HTMLAudioElement private

Defined in _formatResult:93

The result formatter for media files.

Parameters:

Returns:

HTMLVideoElement | HTMLAudioElement: