Skip to content

Commit 4978282

Browse files
authored
Merge pull request #1463 from WebPlatformForEmbedded/pgorszkowski/2.38/GTK-WPE-GStreamer-support-the-eotf-additional-MIME-type-parameter-by-isSupportedType
[GTK][WPE][GStreamer] support the 'eotf' additional MIME type paramet…
2 parents 78ce372 + b5cf513 commit 4978282

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,15 @@ MediaPlayerEnums::SupportsType GStreamerRegistryScanner::isContentTypeSupported(
778778
if (!isCodecSupported(configuration, codec, requiresHardwareSupport))
779779
return SupportsType::IsNotSupported;
780780
}
781+
782+
// The 'eotf' additional mime-type parameter must be supported to be compliant with
783+
// "YouTube TV HTML5 Technical Requirements"
784+
// (point 16.3.1 from https://developers.google.com/youtube/devices/living-room/files/pdf-guides/YouTube_TV_HTML5_Technical_Requirements_2018.pdf).
785+
const auto eotf = contentType.parameter("eotf"_s);
786+
if (!eotf.isEmpty()) {
787+
if (eotf != "bt709"_s && eotf != "smpte2084"_s && eotf != "arib-std-b67"_s)
788+
return SupportsType::IsNotSupported;
789+
}
781790
return SupportsType::IsSupported;
782791
}
783792

0 commit comments

Comments
 (0)