So add a new useragent override (setting its' value as mentioned); general.useragent.override.pornhub.com
(I'll note that the default value of "dom.webcomponents.enabled" is 'false'.)
That is only coincidence.not playing anymore after pm update
Moderator: trava90
That is only coincidence.not playing anymore after pm update
Code: Select all
<html>
<head>
<title>Video test</title>
<body>
<video controls>
<source src="Jellyfish_1080_10s_1MB.webm" type='video/webm;codecs="vp8"'>
</video>
</body>
</head>
</html>
All I know it worked before this commit, which added support for extended VPx codec strings, but also introduced "Cannot play media. No decoders for requested formats" for some sites.
You can easy check that the pornhub does not work in PM v29.4.3 (2021-12-14) and v29.4.5 (2022-03-23) - before this commit https://repo.palemoon.org/MoonchildProd ... ssues/1820sidology wrote: ↑2023-02-06, 00:12All I know it worked before this commit, which added support for extended VPx codec strings, but also introduced "Cannot play media. No decoders for requested formats" for some sites.
Sorry then, all my comments were about that "another" problem. I don't use pornhub, but thought it was the same problem, because of "Cannot play media. No decoders for requested formats".
If we fix it in this way, the vp8 will work.
Code: Select all
static VPXDecoder::Codec MimeTypeToCodec(const nsACString& aMimeType)
{
if (aMimeType.EqualsLiteral("video/webm; codecs=vp8")) {
return VPXDecoder::Codec::VP8;
} else if (aMimeType.EqualsLiteral("video/vp8")) {
return VPXDecoder::Codec::VP8;
} else if (aMimeType.EqualsLiteral("video/webm; codecs=vp9")) {
return VPXDecoder::Codec::VP9;
} else if (aMimeType.EqualsLiteral("video/vp9")) {
return VPXDecoder::Codec::VP9;
}
return VPXDecoder::Codec::Unknown;
}
...
bool
VPXDecoder::IsVPX(const nsACString& aMimeType, uint8_t aCodecMask)
{
return ((aCodecMask & VPXDecoder::VP8) &&
aMimeType.EqualsLiteral("video/webm; codecs=vp8")) ||
((aCodecMask & VPXDecoder::VP8) &&
aMimeType.EqualsLiteral("video/vp8")) ||
((aCodecMask & VPXDecoder::VP9) &&
aMimeType.EqualsLiteral("video/webm; codecs=vp9")) ||
((aCodecMask & VPXDecoder::VP9) &&
aMimeType.EqualsLiteral("video/vp9"));
}
Probably Moonchild did not notice scrollbar in the "CODE" section?
It is used internally. There is a rather confusing code.
Code: Select all
bool
WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs,
const nsAString& aCodecs)
...
if (IsVP9CodecString(codec)) {
trackInfo = CreateTrackInfoWithMIMEType(
NS_LITERAL_CSTRING("video/vp9"));
} else if (IsVP8CodecString(codec)) {
trackInfo = CreateTrackInfoWithMIMEType(
NS_LITERAL_CSTRING("video/vp8"));
}
...
Indeed.
It makes a lot of sense to register if you're actually interested in contributing code, even if rarely.
Thanks, I've got to CanHandleMediaType(), but got lost afterwards.
As long as it makes it to the repo in the end.