[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
Fri Oct 3 01:35:04 PDT 2014


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





--- Comment #7 from thouraya <thouraya.andolsi at st.com>  2014-10-03 01:35:02 PST ---
Hi,

(In reply to comment #5)
> (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.



Calling the stop() function in HTMLMediaElement::removedFrom() instead of pause() couldn't be a solution for the issue?


Regards,
Thouraya.

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