Bug 1766509. Add telemetry to track whether H264 is enabled. r=ng

Differential Revision: https://phabricator.services.mozilla.com/D144827
This commit is contained in:
Jeff Muizelaar 2022-04-28 14:41:50 +00:00
Родитель 984056514e
Коммит 64b078eb27
2 изменённых файлов: 47 добавлений и 0 удалений

Просмотреть файл

@ -587,11 +587,18 @@ class ConfigureCodec {
mSoftwareH264Enabled = PeerConnectionCtx::GetInstance()->gmpHasH264(); mSoftwareH264Enabled = PeerConnectionCtx::GetInstance()->gmpHasH264();
if (WebrtcVideoConduit::HasH264Hardware()) { if (WebrtcVideoConduit::HasH264Hardware()) {
Telemetry::Accumulate(Telemetry::WEBRTC_HAS_H264_HARDWARE, true);
branch->GetBoolPref("media.webrtc.hw.h264.enabled", branch->GetBoolPref("media.webrtc.hw.h264.enabled",
&mHardwareH264Enabled); &mHardwareH264Enabled);
} }
mH264Enabled = mHardwareH264Enabled || mSoftwareH264Enabled; mH264Enabled = mHardwareH264Enabled || mSoftwareH264Enabled;
Telemetry::Accumulate(Telemetry::WEBRTC_SOFTWARE_H264_ENABLED,
mSoftwareH264Enabled);
Telemetry::Accumulate(Telemetry::WEBRTC_HARDWARE_H264_ENABLED,
mHardwareH264Enabled);
Telemetry::Accumulate(Telemetry::WEBRTC_H264_ENABLED,
mH264Enabled);
branch->GetIntPref("media.navigator.video.h264.level", &mH264Level); branch->GetIntPref("media.navigator.video.h264.level", &mH264Level);
mH264Level &= 0xFF; mH264Level &= 0xFF;

Просмотреть файл

@ -11258,6 +11258,46 @@
"n_values": 8, "n_values": 8,
"description": "Type of call: (Bitmask) Audio = 1, Video = 2, DataChannels = 4" "description": "Type of call: (Bitmask) Audio = 1, Video = 2, DataChannels = 4"
}, },
"WEBRTC_SOFTWARE_H264_ENABLED": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"],
"alert_emails": ["webrtc-telemetry-alerts@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"bug_numbers": [1766509],
"releaseChannelCollection": "opt-out",
"description": "Whether hardware H264 is enabled"
},
"WEBRTC_HAS_H264_HARDWARE": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"],
"alert_emails": ["webrtc-telemetry-alerts@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"bug_numbers": [1766509],
"releaseChannelCollection": "opt-out",
"description": "Whether the user has H264 hardware"
},
"WEBRTC_HARDWARE_H264_ENABLED": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"],
"alert_emails": ["webrtc-telemetry-alerts@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"bug_numbers": [1766509],
"releaseChannelCollection": "opt-out",
"description": "Whether software H264 is enabled"
},
"WEBRTC_H264_ENABLED": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"],
"alert_emails": ["webrtc-telemetry-alerts@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"bug_numbers": [1766509],
"releaseChannelCollection": "opt-out",
"description": "Whether any kind of H264 is enabled"
},
"MEDIA_RECORDER_RECORDING_DURATION": { "MEDIA_RECORDER_RECORDING_DURATION": {
"record_in_processes": ["main", "content"], "record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"], "products": ["firefox", "fennec"],