Bug 1628048 - send telemetry data when users attempt to play HLS contents. r=bryce,liuche

Differential Revision: https://phabricator.services.mozilla.com/D75158
This commit is contained in:
John Lin 2020-05-20 01:41:43 +00:00
parent 75174d81e5
commit f4bf60b4d4
2 changed files with 22 additions and 0 deletions

View File

@ -143,8 +143,12 @@ static CanPlayStatus CanHandleCodecsType(
static CanPlayStatus CanHandleMediaType(
const MediaContainerType& aType, DecoderDoctorDiagnostics* aDiagnostics) {
if (DecoderTraits::IsHttpLiveStreamingType(aType)) {
Telemetry::Accumulate(Telemetry::MEDIA_HLS_CANPLAY_REQUESTED, true);
}
#ifdef MOZ_ANDROID_HLS_SUPPORT
if (HLSDecoder::IsSupportedType(aType)) {
Telemetry::Accumulate(Telemetry::MEDIA_HLS_CANPLAY_SUPPORTED, true);
return CANPLAY_MAYBE;
}
#endif

View File

@ -9402,6 +9402,24 @@
"description": "Reports a true value when a page requests canPlayType for a matroska media type.",
"bug_numbers": [1429986, 1570634, 1606206]
},
"MEDIA_HLS_CANPLAY_REQUESTED": {
"record_in_processes": ["content"],
"products": ["firefox", "geckoview"],
"alert_emails": ["jolin@mozilla.com", "bvandyk@mozilla.com"],
"expires_in_version": "85",
"kind": "boolean",
"description": "Reports a true value when a page requests canPlayType for a HLS media type.",
"bug_numbers": [1628048]
},
"MEDIA_HLS_CANPLAY_SUPPORTED": {
"record_in_processes": ["content"],
"products": ["firefox", "geckoview"],
"alert_emails": ["jolin@mozilla.com", "bvandyk@mozilla.com"],
"expires_in_version": "85",
"kind": "boolean",
"description": "Reports a true value when a canPlayType request supports HLS.",
"bug_numbers": [1628048]
},
"MEDIA_MP4_PARSE_SAMPLE_DESCRIPTION_ENTRIES_HAVE_MULTIPLE_CODECS": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],