Home | History | Annotate | Download | only in managing-audio

Lines Matching full:when

39 Likewise, it should know how to listen for a loss of audio focus and respond appropriately when that
51 permanent audio focus. Request transient focus when you expect to play audio for only a short time
52 (for example when playing navigation instructions). Request permanent audio focus when you
53 plan to play audio for the foreseeable future (for example, when playing music).</p>
56 request the audio focus immediately before you begin playback, such as when the user presses
83 // Abandon audio focus when playback complete
87 <p>When requesting transient audio focus you have an additional option: whether or not you want to
88 enable "ducking." Normally, when a well-behaved audio app loses audio focus it immediately
111 registered when requesting focus.</p>
116 <p>If your app can request audio focus, it follows that it will in turn lose that focus when another
121 onAudioFocusChange()} callback method of they audio focus change listener you registered when
138 loss is transient and resume it when we have regained the focus. If the loss is permanent, it
166 <p>In the following code snippet lowers the volume on our media player object when we temporarily
167 lose focus, then returns it to its previous level when we regain focus.</p>