question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for a destroy method

See original GitHub issue

Expected 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:closed
  • Created 7 years ago
  • Reactions:21
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
florianseggingercommented, Dec 7, 2017

+1 This is basic basic stuff you guys

4reactions
luwescommented, Mar 27, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found