# Hooks Hooks exist so that users can globally hook into certain Video.js lifecycle moments. ## Table of Contents * [Current Hooks](#current-hooks) * [beforesetup](#beforesetup) * [Example](#example) * [setup](#setup) * [Example](#example-1) * [Usage](#usage) * [Adding](#adding) * [Example](#example-2) * [Adding Once](#adding-once) * [Example](#example-3) * [Getting](#getting) * [Example](#example-4) * [Removing](#removing) * [Example](#example-5) ## 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 `