WebAPI/AudioChannels: Difference between revisions

no edit summary
No edit summary
Line 121: Line 121:


I'm not sure if we need to have prompts if non-privileged apps try to use channels beyond the "normal" or "content" channels.
I'm not sure if we need to have prompts if non-privileged apps try to use channels beyond the "normal" or "content" channels.
== Audio Competing Policy ==
<table border="1" cellspacing="0" cellpadding="3" align="center">
<tr>
<th>AudioChannelType
<th>Priority
<th>Foreground
<th>Background
<th>Timing of Resuming
<tr>
<td>normal
<td>0
<td>Play
<td>Muted or Paused
<td>Transit to foreground.
<tr>
<td>content
<td>1
<td>Play
<td>[1], [2]
<td valign="middle" align="left">
If the muted/paused is caused by
  1. [1] then will be resumed when [3].
  2. [2] then will be resumed to play when transit to foreground.
<tr>
<td>notification
<td>2
<td>Play
<td>[1]
<td>[3]
<tr>
<td>alarm
<td>3
<td>Play
<td>[1]
<td>[3]
<tr>
<td>telephony
<td>4
<td>Play
<td>[1]
<td>[3]
<tr>
<td>ringer
<td>5
<td>Play
<td>[1]
<td>[3]
<tr>
<td>public notification
<td>6
<td>Play
<td>Play
<td>N/A
</table>
[1] If there is any higher priority channel in playing then muted or paused.
[2] If there is any other content channel starting to play in foreground or background then current content channel in playing will be muted or paused.
[3] No higher priority channels are in playing.


== Use cases and requirements ==
== Use cases and requirements ==
Confirmed users
144

edits