GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for AudioSession.

Developer library 6

AudioSession

Audio Session API The **`AudioSession`** interface of the [Audio Session API](/docs/Web/API/Audio_Session_API) lets a web page declare the type of audio it is producing — for example music playback, a video call, or a short notification. The platform uses the declared type to decide how the page's audio and audio from other applications and tabs should coexist — whether to pause, duck (lower the volume), or play in

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/AudioSession

AudioSession: state property

Audio Session API The **`state`** read-only property of the AudioSession interface returns the current state of the audio session. ## Value A string whose value is one of the following: - `"active"` - : The audio session is currently playing sound, recording audio, or both. - `"interrupted"` - : The audio session was active but has been temporarily suspended by the platform, for example because of an incoming

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/AudioSession/state

AudioSession: statechange event

Audio Session API A **`statechange`** event fires on an AudioSession when its state property changes. This event is not cancelable and does not bubble. ## Syntax Use the event name in addEventListener(): ```js-nolint addEventListener("statechange", (event) => { }) ``` Alternatively, assign to the [event handler property](/docs/Web/API/Document_Object_Model/Events#using_onevent_properties) of the interface: ```

AudioSession: type property

Audio Session API The **`type`** property of the AudioSession interface represents the type of the audio session. The audio session type describes the general nature of a web page's audio output, allowing the platform to determine how web-based audio should interact with other audio playing on the device. ## Value A string representing the audio session type. Possible values are: - `"auto"` - : The default val

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/AudioSession/type

Audio Session API

tate changes, letting a page react to interruptions — for example, by pausing playback that the platform doesn't already pause automatically. ## Interfaces - AudioSession - : The main interface for controlling audio session behavior, including setting the audio session type and tracking its state. ### Extensions to other interfaces - Navigator.audioSession - : Returns the AudioSession object for the curren

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/Audio_Session_API

Navigator

an be retrieved using the read-only window.navigator property. ## Instance properties _Doesn't inherit any properties._ ### Standard properties - Navigator.audioSession - : Returns an AudioSession object that can be used to control how audio from the web application interacts with other audio playing on the device. - Navigator.bluetooth - : Returns a Bluetooth object for the current document, providing a

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/Navigator

JSON results · Services directory