Commit 7d6b6b6
committed
ios: use AVAudioSessionCategoryPlayback to support play in background
we must use playback to support background playing.
make sure you have enabled 'audio' tag ( or 'voip' tag ) at XCode -> Capabilities -> BackgroundMode
note:
this does NOT mean you can start/activate an audio session from background.
it only means iOS will not interrupt already activated playing audio
session when app move to background.
for start audio from background, we must use local notification1 parent 387bd17 commit 7d6b6b6
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
| 380 | + | |
378 | 381 | | |
379 | 382 | | |
380 | 383 | | |
| |||
0 commit comments