Confirmed users
716
edits
(Created page with "This API introduces the concept of a hierarchy of audio channels. The channels are prioritized as to allow "silencing all channels with priority lower than X". The channels are:...") |
(→API) |
||
| Line 17: | Line 17: | ||
interface AudioChannelManager : EventTarget { | interface AudioChannelManager : EventTarget { | ||
muteChannelsBelow(DOMString type); | muteChannelsBelow(DOMString type); | ||
unmuteChannels(); | |||
readonly attribute DOMString[] mutedChannels; | readonly attribute DOMString[] mutedChannels; | ||
attribute EventHandler | attribute EventHandler onmutedchange; | ||
readonly attribute boolean headphones; | readonly attribute boolean headphones; | ||
attribute EventHandler onheadphoneschange; // Always fired before audio start playing through the new channel | |||
attribute boolean speaker; | |||
attribute DOMString volumeControlChannel; // The channel whose volume is changed if the user presses the volumeup/down buttons. | attribute DOMString volumeControlChannel; // The channel whose volume is changed if the user presses the volumeup/down buttons. | ||
} | } | ||