Video Class

Extends Resource
Module: Resources

Video resources are used to store video.

Video data stored in base64.

Item Index

Methods

fileIsVideo

(
  • file
)
Boolean static

Check if a file name refers to a supported video file.

Parameters:

  • file File

Returns:

Boolean:

True if the file refers to a supported video format.

loadArrayBufferData

(
  • data
  • encoding
)

Load arraybuffer data to this image.

Creates a blob with data to be stored on data atribute and used by external objects.

Parameters:

  • data ArrayBuffer

    Data to be loaded.

  • encoding String

    Video enconding (mp4, webm, etc).

toJSON

(
  • meta
)
Object

Serialize resource to json.

Video data is stored in Base64.

Parameters:

  • meta Object

Returns:

Object:

json