Class AudioSession
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalAudioSession interface of the Audio Session API allows developers to specify how audio from a web application interacts with other audio playing on a device.
[Value("AudioSession")]
public class AudioSession : EventTarget
- Inheritance
-
AudioSession
- Inherited Members
Remarks
An audio session represents the aggregated audio output from a web page. It allows web pages to express the general nature of their audio output, such as playback, recording, or transient sounds like notifications. The platform can then use this information to determine how web-based audio should interact with other applications on the device, for example, whether web audio should pause other audio or play alongside it.
Constructors
AudioSession()
public AudioSession()
Properties
Onstatechange
[Value("onstatechange")]
public EventHandlerNonNull Onstatechange { get; set; }
Property Value
State
[Value("state")]
public AudioSessionState State { get; }
Property Value
Type
NOTE
Experimentaltype property of the AudioSession interface returns or sets the type of the audio session.
[Value("type")]
public AudioSessionType Type { get; set; }
Property Value
- AudioSessionType
A string representing the audio session type. Possible values are:
Remarks
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.