Open videojsuser opened 3 years ago
š Thanks for opening your first issue here! š
If you're reporting a š bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Hm... it's possible we still have some reference to it somewhere. We've recently when through and did a survey of such things and removed them. I guess it's time to do so again.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@gkatsev Any update here?
m
I find a way to delete HTMLVideoElement in the memory,which uses document.getElementsByYagName("video")[0].removeAttribute("src");
before destroy the player by using videoObj.dispose();videoObj = null;
.HTMLVideoElement
in the memeory will be recycled.
Description
The video element is actually removed on UI but the HTMLVideoElement is still in memory.
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
Expected result would be the number of HTMLVideoElement should be the same regardless of deleting and recreating the video.
Before toggle![videojs error1](https://user-images.githubusercontent.com/74731554/99705447-badd5e80-2a67-11eb-9c8a-71166e78addf.PNG)
After toggle 5 times![videojs error2](https://user-images.githubusercontent.com/74731554/99705451-bca72200-2a67-11eb-8f6d-112963ad1201.PNG)
Actual
The video element is actually removed on UI but HTMLVideoElement is still in memory.
Error output
Additional Information
Videojs version : 7.10.2 Jquery version : 3.5.1 Browsers : Chrome Version 86.0.4240.198 (Official Build) (64-bit) OS : Windows 10 Professional
Tested HTML