Changeset 166509 in webkit
- Timestamp:
- Mar 31, 2014 9:43:32 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r166507 r166509 1 2014-03-31 Jer Noble <jer.noble@apple.com> 2 3 [MSE][Mac] Support lease-renewal. 4 https://bugs.webkit.org/show_bug.cgi?id=130919 5 6 Reviewed by Eric Carlson. 7 8 Trigger a new key request when receiving an update message containting "renew". 9 10 * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm: 11 (WebCore::CDMSessionMediaSourceAVFObjC::generateKeyRequest): Drive-by fix; generate a UTF-8 12 based array. 13 (WebCore::CDMSessionMediaSourceAVFObjC::update): 14 1 15 2014-03-31 Alexey Proskuryakov <ap@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
r164656 r166509 39 39 #import <CoreMedia/CMBase.h> 40 40 #import <objc/objc-runtime.h> 41 #import <wtf/NeverDestroyed.h> 41 42 42 43 SOFT_LINK_FRAMEWORK_OPTIONAL(AVFoundation) … … 74 75 75 76 String certificateString(ASCIILiteral("certificate")); 76 RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(certificateString.length(), 2); 77 RefPtr<JSC::Uint16Array> array = JSC::Uint16Array::create(buffer, 0, certificateString.length()); 77 RefPtr<Uint8Array> array = Uint8Array::create(certificateString.length()); 78 78 for (unsigned i = 0, length = certificateString.length(); i < length; ++i) 79 79 array->set(i, certificateString[i]); 80 return Uint8Array::create(buffer, 0, buffer->byteLength());80 return array; 81 81 } 82 82 … … 111 111 } 112 112 113 static NeverDestroyed<String> renewMessage("renew"); 114 String keyAsString(key->data(), key->length()); 115 116 if (keyAsString == renewMessage) { 117 [m_parent->parser() renewExpiringContentKeyResponseDataForTrackID:m_parent->protectedTrackID()]; 118 return true; 119 } 120 113 121 LOG(Media, "CDMSessionMediaSourceAVFObjC::update(%p) - key data", this); 114 122 errorCode = MediaPlayer::NoError;
Note: See TracChangeset
for help on using the changeset viewer.