Skip to content

Commit

Permalink
Add player.dispose() API documentation to api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johneke committed Jul 26, 2013
1 parent ca96297 commit a726b07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a726b07

Please sign in to comment.