[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
Thu Jul 22 07:31:00 PDT 2010


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





--- Comment #4 from Eric Carlson <eric.carlson at apple.com>  2010-07-22 07:31:00 PST ---
(In reply to comment #1)
> I don't see NETWORK_LOADED in the spec anymore while we still use it.
> 
> http://www.w3.org/TR/html5/video.html#dom-media-networkstate
> 
NETWORK_LOADING and the 'loaded' event went away in r63684 (and a few follow-on build fixes ;-).


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

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