1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00

Add player.dispose() API documentation to api.md

This commit is contained in:
johneke 2013-07-25 20:05:28 -04:00
parent ca96297ef9
commit a726b07538

View File

@ -186,6 +186,14 @@ myPlayer.cancelFullScreen();
```
### dispose() ###
Destroys the video player and does any necessary cleanup. This is especially helpfull if you are dynamically adding and removing videos to/from the DOM. Use after removing videos from the DOM
```js
myPlayer.dispose();
```
Events
------
You can attach event listeners to the player similarly to how you would for a video element.