GNOME Bugzilla – Bug 350297
Launch the player ASAP
Last modified: 2006-11-15 17:23:05 UTC
When parsing a playlist, we should launch the player ASAP with the logo, and the use SetLocalFilename to set the file. Test: html: <embed src="asxplaylist.asx" type="application/x-mplayer2" width="896" height="384" controller="true" autoplay="true"> asxplaylist.asx: <ASX version = "3.0"> <TITLE>Bastien's Tests</TITLE> <Entry> <Ref href = "http://localhost/big.mov" /> </Entry> </ASX>
*** Bug 171873 has been marked as a duplicate of this bug. ***
I've tried to do this, by launching the viewer in New and returning 0 from WriteReady until the viewer is fully launched. The problem is that this causes mozilla to try to resume the stream every 100ms (calling WriteReady again), and causes high CPU load (~33%) until we can accept the data...
Aren't we stuck in the main loop until the front-end is ready, when launching the viewer, or is WriteReady in that main loop?
No, I modified it to launch but not wait for startup, and instead return 0 from WriteReady until the startup is complete.
*** Bug 359362 has been marked as a duplicate of this bug. ***
bug 359362 was about a problem with _write() being called before _set_window() resulting in the viewer being started without a Window to plug into, and then another time. We should start the viewer as soon as possible (in _new()), cache data in _write(), and start the media backend in _set_window() if not hidden.
I'm working on this.
Created attachment 76475 [details] [review] first patch, for testing and review
Created attachment 76593 [details] [review] updated patch