setup.js - Functions for setting up a player without user interaction based on the data-setup attribute
of the video tag.
Methods
inner autoSetup()
[setup.js](https://docs.videojs.com/setup.js.html)
, [line 17](https://docs.videojs.com/setup.js.html#line17)
Set up any tags that have a data-setup attribute
when the player is started.
inner autoSetupTimeout(wait, vjsopt)
[setup.js](https://docs.videojs.com/setup.js.html)
, [line 72](https://docs.videojs.com/setup.js.html#line72)
Wait until the page is loaded before running autoSetup. This will be called in autoSetup if hasLoaded
returns false.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
wait | number | How long to wait in ms | |
vjs | module:videojs | <optional> | The videojs library function |
inner hasLoaded()
[setup.js](https://docs.videojs.com/setup.js.html)
, [line 114](https://docs.videojs.com/setup.js.html#line114)
check if the window has been loaded