Commit Graph
43 Commits
Author SHA1 Message Date
Gerald Squelart a1d26903ce Bug 1357297 - Restrict media decode issues that show user notification - r=jwwang
The media prefs "media.decoder-doctor.decode-{errors,warnings}-allowed" list
which decode issue codes will show the "Report Site Issue" notification.

Default: NS_ERROR_DOM_MEDIA_DEMUXER_ERR and NS_ERROR_DOM_MEDIA_METADATA_ERR,
which are the kinds of errors we currently care most about, and have more
chance to fix.

MozReview-Commit-ID: JbY2pwv4TXP
2017-04-19 09:42:45 +12:00
Gerald Squelart a716961eff Bug 1357297 - Refactor DecDoctor's ReportAnalysis - r=jwwang
ReportAnalysis now takes the decode issue as a MediaResult and an error/warning
flag instead of a string; And the notification-allowed test is in a separate
function.

These changes will simplify the next patch, where we introduce a new filter
based on the decode issue.

MozReview-Commit-ID: 3ZbtGEl427L
2017-04-19 09:42:15 +12:00
Gerald Squelart 5507075fa4 Bug 1343442 - Analyze eDecodeError/Warning issues - r=jya
MozReview-Commit-ID: 97AhQz2Hgmi
2017-03-24 17:09:41 +11:00
Gerald Squelart 337cb25cff Bug 1343442 - Provide appropriate params to console message - r=jya
MozReview-Commit-ID: HiaY20UqksU
2017-03-23 10:21:27 +11:00
Gerald Squelart c08dc6790b Bug 1343442 - Move NotificationAndReportStringId closer to first use - r=jya
MozReview-Commit-ID: IBn5jsHTsKx
2017-03-22 15:37:41 +11:00
Frederik Braun fdc59ef20e Bug 1346720 - Disallow invalid report IDs early on. r=gerald
MozReview-Commit-ID: GBDnzYh0gPt
2017-03-13 18:40:45 -04:00
Gerald Squelart 9878eba5bd Bug 1343161 - DecoderDoctorDiagnostics::StoreDecodeError/Warning - r=jya
Code to capture decode errors/warnings in Decoder Doctor.
No analysis yet.

MozReview-Commit-ID: 8Aim7vv72xE
2017-02-21 14:07:23 +11:00
Tom Tromey e90d95a3f9 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Bill McCloskey 54da76be6b Bug 1339289 - Give names to a lot of common timers (r=ehsan)
MozReview-Commit-ID: IMsv5bkyjBL
2017-02-15 12:30:01 -08:00
Chris Peterson 62213872f7 Bug 1324183 - Part 2: Remove MediaUnsupportedBeforeWindowsVista console message. r=gerald 2016-12-17 13:13:11 -08:00
Chris Peterson 040eac0df1 Bug 1318833 - Part 3: Remove unused Silverlight checks from Decoder Doctor. r=gerald 2016-11-21 21:11:04 -08:00
Gerald Squelart ec2f0f3b50 Bug 1263665 - DecDoc handling of libavcodec linking issues - r=jya, r=smaug
If libavcodec is present but cannot be used, Decoder Doctor sends a distinct
notification to better help the user find the issue.

MozReview-Commit-ID: IGXPIY1b8AS
2016-09-22 00:06:45 -07:00
James Cheng ca4a59054a Bug 1297003 - Part0- Fix nit. r=gerald
MozReview-Commit-ID: LLCRXgKr8fi
2016-09-30 18:00:49 +08:00
Gerald Squelart 4ba06cd4d7 Bug 1247056 - Handle PulseAudio init error in DecDoc - r=jwwang
MozReview-Commit-ID: 8qa0MO35mRD
2016-09-18 19:41:36 -07:00
Gerald Squelart 4505f62b1b Bug 1247056 - DecDoc::StoreEvent for singular playback issues/solutions - r=jwwang
MozReview-Commit-ID: GYoitdB8Sj0
2016-09-18 19:50:01 -07:00
Gerald Squelart 975140eb6b Bug 1247056 - Refactor ReportToConsole and ReportAnalysis to be static - r=jwwang
This will be useful to call them from outside of DecoderDoctorWatcher.

MozReview-Commit-ID: C7Hq8kwONQO
2016-09-07 19:22:25 -07:00
Gerald Squelart 1d3683c7f8 Bug 1247056 - Fix DecoderDoctor logging - r=jwwang
MozReview-Commit-ID: FbRXn0CtKiZ
2016-09-06 22:36:36 -07:00
James Cheng 8ef6e2639d Bug 1291742 - Report MP4 videos with YUV444 format as unsupported. r=gerald
MozReview-Commit-ID: DxFfSIeYANR
2016-08-19 18:14:28 +08:00
Gerald Squelart e55a62c364 Bug 1288585 - Clarify console message about WinXP unsupported formats - r=cpearce
On Windows XP (and others before Vista), if WMF is required to play a format,
the console message should not refer to Microsoft software as it is not
available there.

MozReview-Commit-ID: LaERcaOfePe
2016-07-22 13:12:15 +10:00
Gerald Squelart 2ae19ad11e Bug 1271483 - p16. gtest for list-string functions - r=cpearce
Moved templated code to VideoUtils.h, so it can more easily be reused, and
tested.

MozReview-Commit-ID: 3vOvaj5VVhm
2016-05-26 19:24:35 +10:00
Gerald Squelart fb31c9eba0 Bug 1271483 - p15. Check if issues have been solved - r=cpearce
To determine if an issue has been solved, go through the possible prefs that
would have been saved by the front-end, to see if any previously-unplayable
formats/key systems are now playable, in which case we notify the frontend, to
record the issue-solved telemetry.

MozReview-Commit-ID: DmU50i6FtG8
2016-05-25 00:41:53 +10:00
Gerald Squelart d7dd878dc5 Bug 1271483 - p14. Demagicify ReportStringId strings - r=cpearce
Combine notification type and web-console string id into structs, simpler to
pass around, and will be useful to go through them when checking for solved
issues.

MozReview-Commit-ID: Hy3bMG3m12V
2016-05-25 01:03:21 +10:00
Gerald Squelart f221b2d244 Bug 1271483 - p13. Rework formats list - r=cpearce
Renamed AppendToStringList to AppendToFormatsList, to distinguish from other
string-based lists.
Ensure that list items don't contain commas, as commas are used as separators,
and we don't want&need to introduce escaping.
Added FormatsListContains.

MozReview-Commit-ID: 8KpuhSjCW3d
2016-05-25 03:24:14 +10:00
Gerald Squelart effa3a79f8 Bug 1271483 - p12. Use StringListContains to filter notifications - r=cpearce
Using string-list iterator instead of bespoke code, to go through the decoder
doctor notifications-allowed pref.

MozReview-Commit-ID: 8sxopvlRrz7
2016-05-26 17:01:52 +10:00
Gerald Squelart 15daff59be Bug 1271483 - p11. Implement comma-sep-string for-range iterator - r=cpearce
Utility class&function that creates an iteratable range from a comma-separated
string, where each iteration will give a dependent substring (i.e., no string
copy happening).
This will help with going through lists of unplayable formats, to see if
issues have been solved.
If useful enough, this could later be published to a more public location
(e.g. mfbt or xpcom).

MozReview-Commit-ID: 3XP5PwQZFA1
2016-05-26 16:43:16 +10:00
Gerald Squelart 4e254d884a Bug 1271483 - p9. Report more details from DecDecDiagnostics - r=cpearce
Fill up extra details in notification: Web-console notification string id (will
be used as telemetry key), and whether the issue is present or has been solved.

MozReview-Commit-ID: AzhuIvGqb2p
2016-05-26 23:26:10 +10:00
Gerald Squelart 73481feb1a Bug 1271483 - p6. Separate unplayable formats by missing decoder - r=cpearce
This helps determine how each format is affected by some issues. It will be
needed in later patches, to see when the issue get fixed (by noticing that
these formats become playable again).

MozReview-Commit-ID: 2wFzmnX5rBY
2016-05-12 16:28:11 +10:00
Gerald Squelart 2fbf574608 Bug 1271483 - p5. Remove 'canPlay', can be inferred otherwise - r=cpearce
Instead of having yet-another variable, just infer playability from the lists
of playable&unplayable formats, which we need to look at anyway.

MozReview-Commit-ID: ABc2WtWADzN
2016-05-12 12:49:36 +10:00
Gerald Squelart b095c5c7d2 Bug 1271483 - p4. Fixed console reporting for Widevine case - r=cpearce
Message was not including the actual Key System at issue.

MozReview-Commit-ID: CavgSGmYCa3
2016-05-16 15:43:19 +10:00
Gerald Squelart e230424321 Bug 1271483 - p3. constify loop variable - r=cpearce
MozReview-Commit-ID: zp0VicPXxk
2016-05-12 15:52:24 +10:00
Gerald Squelart 410970ea77 Bug 1271483 - p2. Fixed whitespace style - r=cpearce
MozReview-Commit-ID: IypVNdXjoSr
2016-05-16 21:35:14 +10:00
Kaku Kuo 12dd4f4c6f Bug 1267985 - include nsContentUtils.h and nsIScriptError.h; r=gerald
MozReview-Commit-ID: JmCUzGj1kBX
2016-04-27 19:03:44 +08:00
Gerald Squelart 88ac442bc5 Bug 848994 - p7. Filter front-end notifications - r=cpearce
Pref "media.decoder-doctor.notifications-allowed" defines which notifications
may be forwarded to the front-end (based on the web-console message ID for
that situation). This allows fine-grained filtering.

The current default is to only notify the user about Widevine requests when WMF
and Silverlight are missing (because Widevine does not include an AAC decoder).

MozReview-Commit-ID: KPFH5XjuwnZ
2016-04-22 13:42:11 +10:00
Gerald Squelart cdcd98e237 Bug 848994 - p6. Analyze Windows issues - r=cpearce
Analyze the diagnostics information gathered so far, and dispatch
notifications as appropriate.
The most important case in this bug is when Widevine is requested but WMF and
Silverlight are missing.
The generic case of WMF missing (when needed to play) is there too.

Note: Currently no notifications are actually sent to the front-end by default,
the following patch will add filtering to allow/prevent targeted notifications.

MozReview-Commit-ID: EB9PKrMgKSr
2016-04-22 13:42:11 +10:00
Gerald Squelart 31f7e7c708 Bug 848994 - p5. Check Silverlight presence - r=cpearce
MozReview-Commit-ID: JRzyIWmMTtf
2016-04-22 13:42:11 +10:00
Gerald Squelart bf6973eb4b Bug 848994 - p4. Record GMP diagnostics - r=cpearce
Record diagnostics information about whether the GMP CDM failed to load
(though currently impossible!), and which GMP is used in the current media
format check.

MozReview-Commit-ID: 4B8kDTAiV6b
2016-04-22 13:42:11 +10:00
Gerald Squelart a7e8617957 Bug 848994 - p3. Check MediaKeySystem requests - r=cpearce
Media Key System access requests are now recorded with their success/failure,
as well as accompanying issues of importance.
In this bug we focus on the Widevine-with-no-WMF case.

MozReview-Commit-ID: ElBN6cXKwAW
2016-04-22 13:42:11 +10:00
Gerald Squelart a50f6825bd Bug 848994 - p2. Detect when WMF is not found - r=cpearce
MozReview-Commit-ID: IHvgJNjuyQA
2016-04-22 13:42:11 +10:00
Gerald Squelart 3a443cbee4 Bug 848994 - p1. Refactor Decoder Doctor - r=cpearce
Some refactoring, clean-ups, etc.

The main change is that the can-play status is passed when diagnostics are
finally recorded. This will help when introducing different types of
diagnostics in future patches (e.g., Key System issues).

MozReview-Commit-ID: 182ePlrMqn4
2016-04-22 13:42:11 +10:00
Gerald Squelart e164bf307f Bug 1248507 - p10. Detect and report when FFMpeg/Linux fails to load - r=jya
If the FFmpeg decoder module cannot be started, the failure is recorded in the
DecoderDoctorDiagnostics structure.
In this case, on Linux if there are no suitable decoders for any requested
format, a "platform decoder not found" notification is sent to Chrome (a
separate bug will implement the actual front-end notification), and logged to
the web console.

Note: All front-end notifications (that could display a notification bar) are
currently disabled by default. Set the following pref to true to enable them:
"media.decoderdoctor.enable-notification-bar".

MozReview-Commit-ID: CdaX7QUdWtd
2016-04-19 17:36:20 +10:00
Gerald Squelart 6290c51e65 Bug 1248507 - p7. Notify decoder-doctor-notification listeners - r=jya,bz
If the Decoder Doctor analysis needs to report something, a notification
is sent to listeners of "decoder-doctor-notification", with data identifying
the type of notification along with the media format(s) that could not be
decoded.

In this patch, there are only two notification types: "cannot-play", or
"can-play-but-some-missing-decoders" (if pref "media.decoderdoctor.verbose" is
true).

In a future bug, the Firefox front-end will handle this notification and then
optionally display a user notification.

Note: "can-play-but-some-missing-decoders" should be useful to help implement
the front-end side (as sites like YouTube will probably have some formats we
don't handle); it may be removed later on if it has no further use.

MozReview-Commit-ID: GL3JRqLxzxL
2016-04-19 17:36:19 +10:00
Gerald Squelart ba63bc3983 Bug 1248507 - p5. DecoderDoctorDiagnostics implementation - r=jya,bz
Minimal implementation of DecoderDoctorDiagnostics.

If the Decoder Doctor analysis needs to report something, a notification is
logged to the web console, with the media format(s) that cannot be decoded.

In this patch, there are only two notification types: "Cannot play" when no
decoders are found for any of the requested formats), or "Can play" (if pref
"media.decoderdoctor.verbose" is true) when decoders are missing for only
some of the requested formats.

MozReview-Commit-ID: 4QkiVvcNSU3
2016-04-19 17:36:19 +10:00
Gerald Squelart 8d3cfac525 Bug 1248507 - p2. DecoderDoctorDiagnostics boilerplate - r=jya
Minimal DecoderDoctorDiagnostics interface and skeleton implementation.

MozReview-Commit-ID: EUXRABPeoIg
2016-04-19 17:36:19 +10:00