summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/audio-session.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/audio-session.idl')
-rw-r--r--testing/web-platform/tests/interfaces/audio-session.idl33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/audio-session.idl b/testing/web-platform/tests/interfaces/audio-session.idl
new file mode 100644
index 0000000000..f542347c71
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/audio-session.idl
@@ -0,0 +1,33 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into webref
+// (https://github.com/w3c/webref)
+// Source: Audio Session (https://w3c.github.io/audio-session/)
+
+enum AudioSessionState {
+ "inactive",
+ "active",
+ "interrupted"
+};
+
+enum AudioSessionType {
+ "auto",
+ "playback",
+ "transient",
+ "transient-solo",
+ "ambient",
+ "play-and-record"
+};
+
+[Exposed=Window]
+partial interface Navigator {
+ // The default audio session that the user agent will use when media elements start/stop playing.
+ readonly attribute AudioSession audioSession;
+};
+
+[Exposed=Window]
+interface AudioSession : EventTarget {
+ attribute AudioSessionType type;
+
+ readonly attribute AudioSessionState state;
+ attribute EventHandler onstatechange;
+};