Bug 1913624 - Remove expired telemetry histogram MEDIA_MKV_CANPLAY_REQUESTED, r=TravisLong.

Differential Revision: https://phabricator.services.mozilla.com/D219480
This commit is contained in:
Florian Quèze
2024-08-21 09:14:31 +00:00
parent 1b7440943c
commit bf739af9c6
3 changed files with 0 additions and 24 deletions

View File

@@ -48,14 +48,6 @@ bool DecoderTraits::IsHttpLiveStreamingType(const MediaContainerType& aType) {
mimeType == MEDIAMIMETYPE("audio/x-mpegurl"); mimeType == MEDIAMIMETYPE("audio/x-mpegurl");
} }
/* static */
bool DecoderTraits::IsMatroskaType(const MediaContainerType& aType) {
const auto& mimeType = aType.Type();
// https://matroska.org/technical/specs/notes.html
return mimeType == MEDIAMIMETYPE("audio/x-matroska") ||
mimeType == MEDIAMIMETYPE("video/x-matroska");
}
static CanPlayStatus CanHandleCodecsType( static CanPlayStatus CanHandleCodecsType(
const MediaContainerType& aType, DecoderDoctorDiagnostics* aDiagnostics) { const MediaContainerType& aType, DecoderDoctorDiagnostics* aDiagnostics) {
// We should have been given a codecs string, though it may be empty. // We should have been given a codecs string, though it may be empty.
@@ -137,10 +129,6 @@ static CanPlayStatus CanHandleMediaType(
} }
#endif #endif
if (DecoderTraits::IsMatroskaType(aType)) {
Telemetry::Accumulate(Telemetry::MEDIA_MKV_CANPLAY_REQUESTED, true);
}
if (aType.ExtendedType().HaveCodecs()) { if (aType.ExtendedType().HaveCodecs()) {
CanPlayStatus result = CanHandleCodecsType(aType, aDiagnostics); CanPlayStatus result = CanHandleCodecsType(aType, aDiagnostics);
if (result == CANPLAY_NO || result == CANPLAY_YES) { if (result == CANPLAY_NO || result == CANPLAY_YES) {

View File

@@ -55,9 +55,6 @@ class DecoderTraits {
// Returns true if aType is MIME type of hls. // Returns true if aType is MIME type of hls.
static bool IsHttpLiveStreamingType(const MediaContainerType& aType); static bool IsHttpLiveStreamingType(const MediaContainerType& aType);
// Returns true if aType is matroska type.
static bool IsMatroskaType(const MediaContainerType& aType);
// Returns an array of all TrackInfo objects described by this type. // Returns an array of all TrackInfo objects described by this type.
static nsTArray<UniquePtr<TrackInfo>> GetTracksInfo( static nsTArray<UniquePtr<TrackInfo>> GetTracksInfo(
const MediaContainerType& aType); const MediaContainerType& aType);

View File

@@ -10134,15 +10134,6 @@
"bug_numbers": [1767334, 1768033], "bug_numbers": [1767334, 1768033],
"description": "Whether H264 encoding is an available capability for being sent to the content processes. 0=no h264, 1=h264 avaiable, 2=no h264 1 directory added, 3=no h264 >1 directories added, 4=directory adds in prorgress" "description": "Whether H264 encoding is an available capability for being sent to the content processes. 0=no h264, 1=h264 avaiable, 2=no h264 1 directory added, 3=no h264 >1 directories added, 4=directory adds in prorgress"
}, },
"MEDIA_MKV_CANPLAY_REQUESTED": {
"record_in_processes": ["content"],
"products": ["firefox"],
"alert_emails": ["media-alerts@mozilla.com"],
"expires_in_version": "118",
"kind": "boolean",
"description": "Reports a true value when a page requests canPlayType for a matroska media type.",
"bug_numbers": [1429986, 1570634, 1606206, 1689266, 1754643, 1813150]
},
"MEDIA_MP4_PARSE_SAMPLE_DESCRIPTION_ENTRIES_HAVE_MULTIPLE_CODECS": { "MEDIA_MP4_PARSE_SAMPLE_DESCRIPTION_ENTRIES_HAVE_MULTIPLE_CODECS": {
"record_in_processes": ["main", "content"], "record_in_processes": ["main", "content"],
"products": ["firefox", "fennec"], "products": ["firefox", "fennec"],