1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-16 11:37:29 +02:00

Merge pull request #655 from johneke/master

Add player.dispose() API documentation to api.md
This commit is contained in:
Steve Heffernan 2013-07-29 08:15:43 -07:00
commit 7936d7967d

View File

@ -186,6 +186,14 @@ myPlayer.cancelFullScreen();
```
### dispose() ###
Destroys the video player and does any necessary cleanup. This is especially helpful 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.