Video Class

Extends Resource
Module: Resources

Video resources are used to store video.

Video data stored in base64.

Constructor

Video

(
  • url
)

Parameters:

  • url String

    URL to video file

Item Index

Methods

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.

toJSON

(
  • meta
)
Object

Serialize resource to json.

Video data is stored in Base64.

Parameters:

  • meta Object

Returns:

Object:

json