Support for a destroy method
See original GitHub issueExpected Behavior
player.destroy() would remove the iframe and everything  the script created in Javascript that drains memory.
Actual Behavior
This method doesn’t exist. player.unload() only resets the player to its initial state.
The Youtube API supports destroy() as described above.
Use Case
I’m working on a one-pager website for a client where the user can swipe through projects and start videos inside them. When a project is entered the video is getting initialised. When they leave the project the video should get destroyed to free up memory.
Issue Analytics
- State:
 - Created 7 years ago
 - Reactions:21
 - Comments:15 (2 by maintainers)
 
Top Results From Across the Web
XRCompositionLayer.destroy() - Web APIs - MDN Web Docs
The destroy() method of the XRCompositionLayer interface deletes the references to the underlying graphics library for the layer.
Read more >Few questions about the destroy() method (C++) - Forums - IBM
After I had a look at some existing code and some documentation I could find, it appears that destroy() is a method of...
Read more >Spring core. Default @Bean destroy method - Stack Overflow
following spring documentation to release its own resources I should specify destroyMethod . I've not found any default destroy methods ...
Read more >Spring - init() and destroy() Methods with Example
destroy -method is bean attribute using which we can assign a custom bean method that will be called just before the bean is...
Read more >Spring init-method and destroy-method example - Java2Blog
In this post, we will see about Spring init-method and destroy-method. When bean is instantiated or destroyed , there are some operations you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

+1 This is basic basic stuff you guys
Thanks for your patience! https://github.com/vimeo/player.js/releases/tag/v2.5.0