[EME] Support the 'encrypted' event for FPS encrypted streams
[WebKit-https.git] / Source / WebCore / platform / graphics / avfoundation / objc / MediaPlayerPrivateMediaSourceAVFObjC.mm
index 701b866..4c3f439 100644 (file)
@@ -957,6 +957,13 @@ void MediaPlayerPrivateMediaSourceAVFObjC::keyNeeded(Uint8Array* initData)
 }
 #endif
 
+#if ENABLE(ENCRYPTED_MEDIA)
+void MediaPlayerPrivateMediaSourceAVFObjC::initializationDataEncountered(const String& initDataType, RefPtr<ArrayBuffer>&& initData)
+{
+    m_player->initializationDataEncountered(initDataType, WTFMove(initData));
+}
+#endif
+
 const Vector<ContentType>& MediaPlayerPrivateMediaSourceAVFObjC::mediaContentTypesRequiringHardwareSupport() const
 {
     return m_player->mediaContentTypesRequiringHardwareSupport();