summaryrefslogtreecommitdiff
path: root/dom/media/MediaDecoderOwner.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2022-04-20 12:37:57 -0500
committerMatt A. Tobin <email@mattatobin.com>2022-04-20 12:37:57 -0500
commit7c598437c237a3a6da4f74f611bc2f043c32abc7 (patch)
treed6352487c1d32b06928f43344d41ba1ca1b0fac7 /dom/media/MediaDecoderOwner.h
parent87dabd4e0b724bb81db3eaeefa09cfd2c5545a36 (diff)
downloadaura-central-7c598437c237a3a6da4f74f611bc2f043c32abc7.tar.gz
Issue #1 - Restore EME (but not the configure logic to enable it)
Diffstat (limited to 'dom/media/MediaDecoderOwner.h')
-rw-r--r--dom/media/MediaDecoderOwner.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/media/MediaDecoderOwner.h b/dom/media/MediaDecoderOwner.h
index 649d2996f..f993b4324 100644
--- a/dom/media/MediaDecoderOwner.h
+++ b/dom/media/MediaDecoderOwner.h
@@ -142,6 +142,14 @@ public:
// The decoder owner should call Shutdown() on the decoder and drop the
// reference to the decoder to prevent further calls into the decoder.
virtual void NotifyXPCOMShutdown() = 0;
+
+#ifdef MOZ_EME
+ // Dispatches a "encrypted" event to the HTMLMediaElement, with the
+ // provided init data. Actual dispatch may be delayed until HAVE_METADATA.
+ // Main thread only.
+ virtual void DispatchEncrypted(const nsTArray<uint8_t>& aInitData,
+ const nsAString& aInitDataType) = 0;
+#endif
};
} // namespace mozilla