Closed
Bug 481082
Opened 16 years ago
Closed 14 years ago
Video controls should listen for |stalled| event
Categories
(Toolkit :: Video/Audio Controls, defect)
Toolkit
Video/Audio Controls
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: Dolske, Assigned: jaws)
Details
Attachments
(1 file, 3 obsolete files)
60.28 KB,
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
Spun off from bug 470983.
When a video fires a |stalled| event (because it's waiting on data from the network, but nothing in coming in), it would be good to show some UI to indicate this state. We should already be showing the throbber by the time |stalled| fires, but it seems like we should differentiate between "data's coming in, sit tight and we'll be right with you" and "aww, crap, nothing's happening, go grab some coffee and a Snicker's bar".
Possible ideas:
* Add text below the throbber. EG "Waiting", "Server not responding", etc.
* Replace fast-spinning throbber with a slow-spinning throbber?
Localization of the text will be a bit of a pain, because the unprivileged video control code can't just load up a string bundle (as normal chrome would do). XUL does generated content now (on 1.9.2, at least, via bug 472500), so it might suffice to pull in some localized CSS.
Reporter | ||
Updated•15 years ago
|
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Version: Trunk → unspecified
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•14 years ago
|
||
With this patch, the throbber will spin backwards with the occurrence of the |stalled| event. We may want to change the graphic (or slow down the spinning).
Attachment #544878 -
Flags: review?(dolske)
Assignee | ||
Comment 2•14 years ago
|
||
With this patch, the throbber will spin backwards with the occurrence of the |stalled| event. We may want to change the graphic (or slow down the spinning).
[Previous patch was missing updates for pinstripe theme]
Attachment #544878 -
Attachment is obsolete: true
Attachment #544879 -
Flags: review?(dolske)
Attachment #544878 -
Flags: review?(dolske)
Assignee | ||
Comment 3•14 years ago
|
||
Updated the graphic to be a slower spinning throbber moving in the backwards direction.
Attachment #544879 -
Attachment is obsolete: true
Attachment #545792 -
Flags: review?(dolske)
Attachment #544879 -
Flags: review?(dolske)
Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 545792 [details] [diff] [review]
Patch for bug 481082
Review of attachment 545792 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/content/widgets/videocontrols.xml
@@ +315,5 @@
> setupStatusFader : function(immediate) {
> var show = false;
> if (this.video.seeking ||
> this.video.error ||
> + this.stalled ||
I don't think we want to check for stalled here, since you could be both in a stalled state and currently playing from a previously-buffered region.
We need to track the stalled state, but can just rely on the existing "waiting" event handling to trigger the throbber overlay.
Since there are a lot of other events setting the overlay type to "throbber", I suspect it would be easiest to just set an attribute ("stalled") on the throbber overlay (upon receiving stalled, and clear it upon receiving progress). And let CSS handle which image to show.
EG:
.statusIcon[type="throbber"] {
background: url(chrome://global/skin/media/throbber.png) no-repeat center;
}
.statusIcon[type="throbber"][stalled] {
background-image: url(stalled.png);
}
Attachment #545792 -
Flags: review?(dolske) → review-
Assignee | ||
Comment 5•14 years ago
|
||
I made the recommended changes and was able to remove the |this.stalled| property since it was redundant.
Attachment #545792 -
Attachment is obsolete: true
Attachment #547288 -
Flags: review?(dolske)
Reporter | ||
Updated•14 years ago
|
Attachment #547288 -
Flags: review?(dolske) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
![]() |
||
Comment 6•14 years ago
|
||
Flags: in-testsuite?
Keywords: checkin-needed
Comment 7•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in
before you can comment on or make changes to this bug.
Description
•