зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1180109 - Telemetry to report whether we can play H.264/AAC with Windows Media Foundation. r=dolske,vladan
This commit is contained in:
Родитель
44b587e55f
Коммит
3bf7be3b02
|
@ -1422,6 +1422,20 @@ var gBrowserInit = {
|
|||
this.gmpInstallManager.simpleCheckAndInstall().then(null, () => {});
|
||||
}, 1000 * 60);
|
||||
|
||||
// Report via telemetry whether we're able to play MP4/H.264/AAC video.
|
||||
// We suspect that some Windows users have a broken or have not installed
|
||||
// Windows Media Foundation, and we'd like to know how many. We'd also like
|
||||
// to know how good our coverage is on other platforms.
|
||||
// Note: we delay by 90 seconds reporting this, as calling canPlayType()
|
||||
// on Windows will cause DLLs to load, i.e. cause disk I/O.
|
||||
setTimeout(() => {
|
||||
let v = document.createElementNS("http://www.w3.org/1999/xhtml", "video");
|
||||
let aacWorks = v.canPlayType("audio/mp4") != "";
|
||||
Services.telemetry.getHistogramById("VIDEO_CAN_CREATE_AAC_DECODER").add(aacWorks);
|
||||
let h264Works = v.canPlayType("video/mp4") != "";
|
||||
Services.telemetry.getHistogramById("VIDEO_CAN_CREATE_H264_DECODER").add(h264Works);
|
||||
}, 90 * 1000);
|
||||
|
||||
SessionStore.promiseInitialized.then(() => {
|
||||
// Bail out if the window has been closed in the meantime.
|
||||
if (window.closed) {
|
||||
|
|
|
@ -5918,6 +5918,20 @@
|
|||
"n_values": 256,
|
||||
"description": "WMF media decoder error or success (0) codes."
|
||||
},
|
||||
"VIDEO_CAN_CREATE_AAC_DECODER": {
|
||||
"alert_emails": ["cpearce@mozilla.com"],
|
||||
"expires_in_version": "50",
|
||||
"kind": "boolean",
|
||||
"description": "Whether at startup we report we can playback MP4 (AAC) audio. This is single value is recorded at every startup.",
|
||||
"releaseChannelCollection": "opt-out"
|
||||
},
|
||||
"VIDEO_CAN_CREATE_H264_DECODER": {
|
||||
"alert_emails": ["cpearce@mozilla.com"],
|
||||
"expires_in_version": "50",
|
||||
"kind": "boolean",
|
||||
"description": "Whether at startup we report we can playback MP4 (H.264) video. This is single value is recorded at every startup.",
|
||||
"releaseChannelCollection": "opt-out"
|
||||
},
|
||||
"VIDEO_CANPLAYTYPE_H264_CONSTRAINT_SET_FLAG": {
|
||||
"expires_in_version": "50",
|
||||
"kind": "enumerated",
|
||||
|
|
Загрузка…
Ссылка в новой задаче