Closed Bug 758481 Opened 9 years ago Closed 9 years ago
When seeking in an unbuffered range after having ended a media, network
State is NETWORK _IDLE
STR : 1. Load a page containing a video ; 2. Start playing the video, the networkState is NETWORK_LOADING ; 3. Seek near the end of the video, the video will buffer from that point, and then the download finishes. The networkState is now NETWORK_IDLE ; 4. Seek in an unbuffered range, in the middle of the video. Expected result : Per spec , the networkState should be NETWORK_LOADING : > NETWORK_LOADING (numeric value 2) > The user agent is actively trying to download data. Actual result : networkState is NETWORK_IDLE. I could reproduce this on current release, today's nightly. Not sure if it is a regression or it has always been like that.
I'm currently also (re)writing test_networkState.html to be sure not to regress here (considering the incoming stop download / resume download feature), but I need other change to land before I can write a reliable test.
Attachment #628233 - Flags: review?(chris.double)
Comment on attachment 628233 [details] [diff] [review] Patch v0 : When opening a channel, set the networkState to NETWORK_LOADING. Review of attachment 628233 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/html/content/public/nsHTMLMediaElement.h @@ +155,5 @@ > // asked the decoder to resumed the download. > + // If aForce is True, ignore the fact that the download has previously > + // finished. We are downloading the middle of the media after having > + // downloaded the end, we need to notify the element a download in ongoing. > + void DownloadResumed(bool aForce = false); Can we call this 'aForceNetworkLoading' or something like that? 'aForce' doesn't really explain what it does.
Attachment #628233 - Flags: review?(chris.double) → review+
Target Milestone: --- → mozilla14
My apologies Paul, I had to fix a merge conflict and when committing and I forgot to set the author information for the patch to refer to you.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.