audio-session.idl (766B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Audio Session (https://w3c.github.io/audio-session/) 5 6 [Exposed=Window] 7 interface AudioSession : EventTarget { 8 attribute AudioSessionType type; 9 10 readonly attribute AudioSessionState state; 11 attribute EventHandler onstatechange; 12 }; 13 14 enum AudioSessionType { 15 "auto", 16 "playback", 17 "transient", 18 "transient-solo", 19 "ambient", 20 "play-and-record" 21 }; 22 23 enum AudioSessionState { 24 "inactive", 25 "active", 26 "interrupted" 27 }; 28 29 [Exposed=Window] 30 partial interface Navigator { 31 // The default audio session that the user agent will use when media elements start/stop playing. 32 readonly attribute AudioSession audioSession; 33 };