mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Telemetry: Remove stubs and related code
This commit is contained in:
parent
10053448d6
commit
aea50f182f
134 changed files with 68 additions and 3422 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "nsCharSeparatedTokenizer.h"
|
||||
#include "nsMimeTypes.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#include "OggDecoder.h"
|
||||
#include "OggDemuxer.h"
|
||||
|
|
@ -85,22 +84,6 @@ DecoderTraits::IsWebMAudioType(const nsACString& aType)
|
|||
return aType.EqualsASCII("audio/webm");
|
||||
}
|
||||
|
||||
static char const *const gHttpLiveStreamingTypes[] = {
|
||||
// For m3u8.
|
||||
// https://tools.ietf.org/html/draft-pantos-http-live-streaming-19#section-10
|
||||
"application/vnd.apple.mpegurl",
|
||||
// Some sites serve these as the informal m3u type.
|
||||
"application/x-mpegurl",
|
||||
"audio/x-mpegurl",
|
||||
nullptr
|
||||
};
|
||||
|
||||
static bool
|
||||
IsHttpLiveStreamingType(const nsACString& aType)
|
||||
{
|
||||
return CodecListContains(gHttpLiveStreamingTypes, aType);
|
||||
}
|
||||
|
||||
#ifdef MOZ_FMP4
|
||||
static bool
|
||||
IsMP4SupportedType(const MediaContentType& aParsedType,
|
||||
|
|
@ -247,10 +230,6 @@ CanHandleMediaType(const MediaContentType& aType,
|
|||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
if (IsHttpLiveStreamingType(aType.GetMIMEType())) {
|
||||
/* Telemetry STUB */
|
||||
}
|
||||
|
||||
if (aType.HaveCodecs()) {
|
||||
CanPlayStatus result = CanHandleCodecsType(aType, aDiagnostics);
|
||||
if (result == CANPLAY_NO || result == CANPLAY_YES) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue