[webkit-changes] [WebKit/WebKit] 15a1de: REGRESSION (271966 at main): Netflix playback fails o...
aestes
noreply at github.com
Wed Dec 13 16:19:46 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 15a1de2814bc521c737a4370fc2eef779005398c
https://github.com/WebKit/WebKit/commit/15a1de2814bc521c737a4370fc2eef779005398c
Author: Andy Estes <aestes at apple.com>
Date: 2023-12-13 (Wed, 13 Dec 2023)
Changed paths:
M Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.h
M Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm
Log Message:
-----------
REGRESSION (271966 at main): Netflix playback fails on iPadOS after adopting AVSampleBufferAttachContentKey
https://bugs.webkit.org/show_bug.cgi?id=266375
rdar://119345487
Reviewed by Jer Noble.
On iOS a key may be usable for decryption even when its status isn't KeyStatus::Usable. Accounted
for this by reusing the logic in CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable to determine if
a key is usable. Also asserted that there is no usable key whenever
CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample returns nil.
* Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.h:
* Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::isPotentiallyUsableKeyStatus):
(WebCore::CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable const):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::isAnyKeyUsable const):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample):
Canonical link: https://commits.webkit.org/272014@main
More information about the webkit-changes
mailing list