Video

Utility methods related to video files in the browser.

Methods

static create(url, options)

Create a Video element for the given URL.

Parameters
url String
options Object
Properties
muted bool true

If true, the video is started muted.

autoplay bool true

If true, the video automatically stats when it is loaded.

loop bool true

If true, the video loops when it gets to the end.

static isVideoFile(url)

Does the given URL have a video file extension?

Parameters
url String