Global

Methods

wralvideo(element, options)

Mounts the video player to a video element.

Parameters:
Name Type Description
element DOMElement

A DOM element, such as the return value from document.getElementById(...)

options object

All video.js options are supported

Source:
Returns:

A videojs player instance

Additional options:

  • adTagUrl - a VAST url for in-video ads
  • autoplay - (default: false) - boolean, 'play', 'mute', or 'any'
Example

Mount the video tag with id `example`

wralvideo(document.getElementById('example'));

TODO: remove @deprecated 3rd arg from consuming code