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