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 |
Returns:
A videojs player instance
Additional options:
adTagUrl
- a VAST url for in-video adsautoplay
- (default:false
) - boolean, 'play', 'mute', or 'any'
Example
wralvideo(document.getElementById('example'));
TODO: remove @deprecated 3rd arg from consuming code