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:
commit
7936d7967d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user