- Dec 12, 2022
- 357
- 2
Following this example
Since I only need a sound, and the onscreen page is not always the same, I'm using MediaPlayer instead of VideoPlayer.
So I added
B4X:
B4X:
The sound starts playing with the app in foreground, but a soon as I press the home button, the sound stops.
Bringing the app back to foreground, causes the sound to resume playing.
What's the correct way to keep playing also when the home screen is displayed?
برای دیدن لینک ها باید ثبت نام کنید
I'm trying to keep playing a sound when the app is sent in background.Since I only need a sound, and the onscreen page is not always the same, I'm using MediaPlayer instead of VideoPlayer.
So I added
B4X:
#PlistExtra: <key>UIBackgroundModes</key><array><string>audio</string></array>
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
The sound starts playing with the app in foreground, but a soon as I press the home button, the sound stops.
Bringing the app back to foreground, causes the sound to resume playing.
What's the correct way to keep playing also when the home screen is displayed?
برای دیدن لینک ها باید ثبت نام کنید