DWVv0.37.0

RawVideoLoader

Source: rawVideoLoader.js:12

Raw video loader.

Url example (cors enabled): https://raw.githubusercontent.com/clappr/clappr/master/test/fixtures/SampleVideo_360x240_1mb.mp4.


Constructor

new RawVideoLoader(): RawVideoLoader

Instance Methods

load(buffer: object, origin: string, index: number)

Internal Data URI load.

Parameters

  • buffer (object) — The read data.
  • origin (string) — The data origin.
  • index (number) — The data index.

abort()

Abort load.

canLoadExtension(value: string): boolean

Check if the loader supports the input extension.

Parameters

  • value (string) — The extensione.

Returns

  • boolean — True if it can be loaded.

isLoaderName(value: string): boolean

Check if the input is the loader name.

Parameters

  • value (string) — The test name.

Returns

  • boolean — True if input is the loader name.

canLoadMediaType(value: string): boolean

Check if the loader supports the input media type.

Parameters

  • value (string) — The media type.

Returns

  • boolean — True if it can be loaded.

loadFileAs(): number

Get the file content type needed by the loader.

Returns

  • number — One of the 'fileContentTypes'.

loadUrlAs(): number

Get the url content type needed by the loader.

Returns

  • number — One of the 'urlContentTypes'.