# Hooks Hooks exist so that users can globally hook into certain Video.js lifecycle moments. ## Table of Contents * [Current Hooks](#current-hooks) * [beforesetup](#beforesetup) * [setup](#setup) * [Usage](#usage) * [Adding](#adding) * [Getting](#getting) * [Removing](#removing) ## Current Hooks Currently, the following hooks are available: ### beforesetup `beforesetup` occurs just before a player is created. This allows: * Modification of the options passed to the Video.js function (e.g., `videojs('some-id, options)`). * Modification of the DOM video element that will be used for the player that will be created. `beforesetup` hook functions should: * Take two arguments: 1. `videoEl`: DOM `