[Webkit-unassigned] [Bug 37034] MediaPlayerPrivateGStreamer doesn't return to NETWORK_IDLE when not using network

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 23 05:53:45 PDT 2010


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





--- Comment #5 from Philippe Normand <pnormand at igalia.com>  2010-07-23 05:53:46 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > LOADED is used when a media is fully buffered I think
> > and IDLE is when network is not used, so I guess it's kind of not the same ;)
> > 
> > I'm still confused though to still see we use LOADED and the spec not mentionning it 
> > anymore, or I'm reading the wrong one.
> We still have the internal state MediaPlayer::Loaded, but that translates to networkState == NETWORK_IDLE. This internal state is necessary so we can tell if we need to fire the 'suspend' event or not. The spec says this about the 'suspend' event:
> 
> The user agent is intentionally not currently fetching media data, but does not have the entire media resource downloaded.
> 
> http://www.w3.org/TR/html5/video.html#mediaevents
> 
> The 'suspend' event is only fired when the media engine sets networkState to MediaPlayer::Idle itself.

Hum does that mean we should set networkState to Idle when the media is fully loaded?

Sorry but I don't see how to make that test pass without doing that, simply because the media is local, download is instantaneous, so I don't see why a suspend event should be fired in this case.

In progressive download mode GStreamer will keep the download running even if the playback is paused, until it fully completes, AFAIK.

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