[Webkit-unassigned] [Bug 137025] HTMLMediaElement::removedFrom is not clearing the player and causes lock up of video resource

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 2 07:27:26 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=137025





--- Comment #5 from Eric Carlson <eric.carlson at apple.com>  2014-10-02 07:27:24 PST ---
(In reply to comment #4)
> 
> We are running an application that plays a list of videos.
> 
> We are able to play only the first video, because we are running videos on a set-top box and we have to close the device before running a new one.
> 
> The application is written in JavaScript.
> 
> To stop playing a video and start playing a new one, the application is calling 
> removedFrom function.
> 
> 
So the problem is that the element is not being garbage collected before the next one is set up. You can't change this, but you can force the media player to be cleared by changing video.src. Note that if you set it to an empty string, eg. video.src="", you will also need to call video.load(). 

Do this before removing the <video> element from the DOM and the media player will be cleared before you create the new one.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list