Skip to content

Commit b5cf513

Browse files
[GTK][WPE][GStreamer] support the 'eotf' additional MIME type parameter by isSupportedType
https://bugs.webkit.org/show_bug.cgi?id=287560 Reviewed by Philippe Normand. MediaSource.isSupportedType method must support the 'eotf' additional MIME type parameter and support the following values: * 'bt709', indicating ITU-R BT.1886 support * 'smpte2084', to indicate SMPTE 2084 EOTF support * 'arib-std-b67', to indicate ARIB STD-B67 support to be compliant with "YouTube TV HTML5 Technical Requirements" (defined in point 16.3.1 of https://developers.google.com/youtube/devices/living-room/files/pdf-guides/YouTube_TV_HTML5_Technical_Requirements_2018.pdf). * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::isContentTypeSupported const): Canonical link: https://commits.webkit.org/290396@main
1 parent 78ce372 commit b5cf513

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)