Closed Bug 1381375 Opened 7 years ago Closed 7 years ago

Show proper error on video controls when the media source is not found (getting 404 response code)

Categories

(Toolkit :: Video/Audio Controls, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: ralin, Assigned: ralin)

References

Details

Attachments

(1 file)

Instead of showing "Video format or MIME type is not supported" when the source is unreachable which is a bit misleading, we should consider a specific error message for not found error. As 1376004 will be landed soon, we'll get more informative error message from playback, and that would be something we can respect for the message on UI.
Hi Stephen, 


Could you provide me some ideas about what to show on video control when the media source is not found? I was thinking something like "Video source is not found", but I guess it's not interpretive enough for users.

Thanks
Flags: needinfo?(shorlander)
Redirecting to Michelle since she is doing more of the writing for Firefox.
Flags: needinfo?(shorlander) → needinfo?(mheubusch)
Priority: -- → P4
Let's go with "Video not found" since the word "source" is a bit technical. Ralin, can you take this?
Flags: needinfo?(mheubusch) → needinfo?(ralin)
Sure, I have some spare time tomorrow, I'll work on it. Thanks.
Assignee: nobody → ralin
Flags: needinfo?(ralin)
Depends on: 1412251
Ray, 
Do you think we can show the error in Bug 1411766 on the video control?
Bug 708150 addressed very similar issue. The discussions look solid to me as yet, so I didn't create new string for this.
Status: NEW → ASSIGNED
Comment on attachment 8923281 [details]
Bug 1381375 - Show proper error message for 404 not found media source on video controls.

https://reviewboard.mozilla.org/r/194466/#review199682

::: toolkit/content/widgets/videocontrols.xml:769
(Diff revision 1)
>                break;
>              case v.error.MEDIA_ERR_DECODE:
>                error = "errorDecode";
>                break;
>              case v.error.MEDIA_ERR_SRC_NOT_SUPPORTED:
> -              error = "errorSrcNotSupported";
> +              error = v.networkState == v.NETWORK_NO_SOURCE ? "errorNoSource" : "errorSrcNotSupported";

Can you wrap this a new line at the ? mark?

```
error = v.networkState == v.NETWORK_NO_SOURCE ?
  "errorNoSource" :
  "errorSrcNotSupported";
break;
```
Attachment #8923281 - Flags: review?(jaws) → review+
Issue fixed, thanks for review :D
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5599898d9bad
Show proper error message for 404 not found media source on video controls. r=jaws
Keywords: checkin-needed
Backout by philringnalda@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a16cc603d061
Backed out changeset 5599898d9bad for failures in test_videocontrols_error.html
Wups, little slow on the copy-paste here, "for failures in test_videocontrols_error.html like https://treeherder.mozilla.org/logviewer.html#?job_id=140955251&repo=autoland"
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/56717feaa049
Show proper error message for 404 not found media source on video controls. r=jaws
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/56717feaa049
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: