Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 795999704c17ab8b2e2d3d61465c52255b216c29
https://github.com/WebKit/WebKit/commit/795999704c17ab8b2e2d3d61465c52255b216c29
Author: Jean-Yves Avenard <[email protected]>
Date: 2025-10-24 (Fri, 24 Oct 2025)
Changed paths:
M Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.cpp
M Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.h
M Source/WebCore/platform/MediaSamplesBlock.h
M Source/WebCore/platform/TrackInfo.cpp
M Source/WebCore/platform/TrackInfo.h
M Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm
M Source/WebCore/platform/graphics/cocoa/CMUtilities.h
M Source/WebCore/platform/graphics/cocoa/CMUtilities.mm
M Source/WebKit/Scripts/webkit/messages.py
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
TrackInfo/MediaSamplesBlock do not allow for protected content.
https://bugs.webkit.org/show_bug.cgi?id=300875
rdar://162759126
Reviewed by Youenn Fablet.
We add preliminary support for FairPlay encrypted content and ability to
convert an encrypted CMSampleBuffer to/from a MediaSamplesBlock.
Manually tested with MediaSourceUseRemoteAudioVideoRenderer set to true
and playing Netflix and Disney videos.
* Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.cpp:
* Source/WebCore/PAL/pal/cf/CoreMediaSoftLink.h:
* Source/WebCore/platform/MediaSamplesBlock.h:
* Source/WebCore/platform/TrackInfo.h:
(WebCore::TrackInfo::operator== const):
(WebCore::TrackInfo::TrackInfo):
(WebCore::VideoInfo::create):
(WebCore::VideoInfo::VideoInfo):
(WebCore::AudioInfo::create):
(WebCore::AudioInfo::AudioInfo):
* Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:
(WebCore::MediaSampleAVFObjC::commonInit): Move getKeyIDs into its own method
in CMUtilities.
* Source/WebCore/platform/graphics/cocoa/CMUtilities.h:
* Source/WebCore/platform/graphics/cocoa/CMUtilities.mm:
(WebCore::cfStringToFourCC):
(WebCore::cfStringFromFourCC):
(WebCore::createExtensionAtomsDictionary):
(WebCore::setEncryptionInfo):
(WebCore::createAudioFormatDescription):
(WebCore::createFormatDescriptionFromTrackInfo):
(WebCore::createAudioInfoFromFormatDescription):
(WebCore::createVideoInfoFromFormatDescription):
(WebCore::toCMSampleBuffer):
(WebCore::samplesBlockFromCMSampleBuffer):
(WebCore::getKeyIDs):
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Canonical link: https://commits.webkit.org/302086@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications