Commit 77dd123
committed
[EME] Check support for full content type (including codecs)
https://bugs.webkit.org/show_bug.cgi?id=310709
Reviewed by NOBODY (OOPS!).
When evaluating media capabilities for requestMediaKeySystemAccess,
we use pass ParsedContentType's m_mimeType to the MediaSource,
which omits parameters of the MIME type like codecs.
The right field to use here is m_contentType, so MediaSource
can check support against the full MIME type, rather than just
its container type.
* Source/WebCore/platform/encryptedmedia/CDMPrivate.cpp:
(WebCore::CDMPrivate::getSupportedCapabilitiesForAudioVideoType):
* Source/WebCore/platform/network/ParsedContentType.h:
(WebCore::ParsedContentType::contentType const): Added, returns m_contentType.
Original author: Andrzej Surdej <Andrzej_Surdej@comcast.com>
See: WebPlatformForEmbedded/WPEWebKit#16431 parent 7e2a2b0 commit 77dd123
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments