mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb/EME: Implement MediaKeySystemAccess
This commit is contained in:
committed by
Jelle Raaijmakers
parent
cc50b30399
commit
b1c1e33bae
Notes:
github-actions[bot]
2025-08-27 07:59:52 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b1c1e33baee Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5665 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/trflynn89
@@ -0,0 +1,32 @@
|
||||
// https://w3c.github.io/encrypted-media/#mediakeysystemaccess-interface
|
||||
[Exposed=Window, SecureContext]
|
||||
interface MediaKeySystemAccess {
|
||||
readonly attribute Utf16DOMString keySystem;
|
||||
MediaKeySystemConfiguration getConfiguration();
|
||||
[FIXME] Promise<MediaKeys> createMediaKeys();
|
||||
};
|
||||
|
||||
// https://w3c.github.io/encrypted-media/#dom-mediakeysrequirement
|
||||
enum MediaKeysRequirement {
|
||||
"required",
|
||||
"optional",
|
||||
"not-allowed"
|
||||
};
|
||||
|
||||
// https://w3c.github.io/encrypted-media/#dom-mediakeysystemconfiguration
|
||||
dictionary MediaKeySystemConfiguration {
|
||||
Utf16DOMString label = "";
|
||||
sequence<Utf16DOMString> initDataTypes = [];
|
||||
sequence<MediaKeySystemMediaCapability> audioCapabilities = [];
|
||||
sequence<MediaKeySystemMediaCapability> videoCapabilities = [];
|
||||
MediaKeysRequirement distinctiveIdentifier = "optional";
|
||||
MediaKeysRequirement persistentState = "optional";
|
||||
sequence<Utf16DOMString> sessionTypes;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/encrypted-media/#dom-mediakeysystemmediacapability
|
||||
dictionary MediaKeySystemMediaCapability {
|
||||
Utf16DOMString contentType = "";
|
||||
Utf16DOMString? encryptionScheme = null;
|
||||
Utf16DOMString robustness = "";
|
||||
};
|
||||
Reference in New Issue
Block a user