From ef5f33bcf6209c31ad5871daa9ce56d1615d35ab Mon Sep 17 00:00:00 2001 From: youennf Date: Tue, 22 Oct 2024 15:38:52 +0200 Subject: [PATCH] Update type and state sections (#31) * Update type and state sections --- index.bs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.bs b/index.bs index a655514..2d05929 100644 --- a/index.bs +++ b/index.bs @@ -119,7 +119,7 @@ In the API, these are represented by the {{AudioSessionType}} enum:
play-and-record
Play and record audio, which is used for recording audio. This is useful in cases microphone is being used or in video conferencing applications.
auto
-
Auto lets the User Agent choose the best audio session type according the use of audio by the web page. This is the type of the default {{AudioSession}}.
+
Auto lets the user agent choose the best audio session type according the use of audio by the web page. This is the default type of {{AudioSession}}.
@@ -133,23 +133,21 @@ In the API, these are represented by the {{AudioSessionType}} enum:
   };
 
+An {{AudioSessionType}} is an exclusive type if it is {{AudioSessionType/playback}} or {{AudioSessionType/play-and-record}}. + ## Audio session states ## {#audio-session-states} -An [=audio session=] can be in one of following state , which are represented in the API by the {{AudioSessionState}} enum: +An [=audio session=] can be in one of the following state , which are represented in the API by the {{AudioSessionState}} enum:
active
-
the [=audio session=] is playing sound.
+
the [=audio session=] is playing sound or recording microphone.
interrupted
-
the [=audio session=] is not playing sound, but can resume when it will get uninterrupted.
+
the [=audio session=] is not playing sound nor recording microphone, but can resume when it will get uninterrupted.
inactive
-
the [=audio session=] is not playing sound.
+
the [=audio session=] is not playing sound nor recording microphone.
-The page has a default audio session which is used by the user agent to automatically set up the audio session parameters. -The UA will request and abandon audio focus when media elements start/finish playing on the page. -This default audio session is represented as an {{AudioSession}} object that is exposed as {{Navigator/audioSession|navigator.audioSession}}. -
   enum AudioSessionState {
     "inactive",
@@ -158,6 +156,8 @@ This default audio session is represented as an {{AudioSession}} object that is
   };
 
+The [=audio session=]'s state may change, which will automatically [=update the state=] of its {{AudioSession}} object. + # Extensions to the `Navigator` interface # {#extensions-to-navigator}