Refers to the process of playing audio files in a background agent. Most relevant for Windows Phone and WinRT
Questions tagged [background-audio]
142 questions
10
votes
2 answers
How to vanish player controls from lockscreen after the playback has finished in iOS10+?
While playing audio in background mode player controls appears on the lockscreen. How to remove it when the audio has stopped? If try to set:
MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
player is still on the lockscreen, but the fields…

Max
- 636
- 3
- 13
- 28
8
votes
1 answer
PWA play media in background
I have an idea to build a simple mobile website that can play music when minimized or even when the phone is locked.
I know support for this is limited, so was wondering, is a PWA a solution for this? I can’t find much documentation about the…

cumul
- 864
- 9
- 21
7
votes
1 answer
AVAudioPlayer on Lock Screen
I've implemented an audio player using AVAudioPlayer (not AVPlayer). I'm able to handle the remote control events with the following method. It works quite alright so far, however I see two more subtypes for these events:…

Neeku
- 3,646
- 8
- 33
- 43
6
votes
1 answer
BackgroundAudioPlayer doesn't start playing
Windows Phone 8 app.
We're using AudioStreamingAgent/Mp3MediaStreamSource to play MP3 files which could be cached locally or loaded from web.
When file is downloaded we are still using AudioStreamingAgent /Mp3MediaStreamSource to ensure we will be…

Alex Sorokoletov
- 3,102
- 2
- 30
- 52
6
votes
3 answers
Timer in AudioPlaybackAgent
I have an Internet radio app that uses BackgroundAudioPlayer.
I need a timer in the Audio Playback Agent that will update the track title of the currently playing track of the BAP that is pulled from the Internet radio station's API.
Adding a…

ReignOfComputer
- 747
- 2
- 10
- 30
5
votes
1 answer
Reacting to UserAction in AudioPlayerAgent when app is suspended
I have an audio player that uses BackgroundAudioPlayer together with AudioPlayerAgent. Everything is working fine, except there's one use case I don't know how to handle.
If I play an audio track in my application and then the user switches to…

Johan Paul
- 2,203
- 2
- 22
- 38
4
votes
2 answers
Preinitialize BackgroundAudioPlayer in WP7?
When I am using the BackgroundAudioPlayer in my Windows Phone 7 application, it takes a lot of time to load the first time I want to play a song. Is there any way of preinitializing the BackgroundAudioPlayer before playing the first track, so that…

kgrevehagen
- 514
- 6
- 20
4
votes
3 answers
avplayer doesn't pause when clicked on pause button if screen is locked
If the app is playing the audio and phone screen is locked then control screen is shown as below. I am not able to take any action on avplayer
In my appdelegate I implemented:
- (BOOL)application:(UIApplication *)application…

A_G
- 2,260
- 3
- 23
- 56
4
votes
2 answers
Is media pipeline broken in Windows Phone 8.1?
It seems that media pipeline in Windows Phone 8.1 is broken because of a lot of memory management issues.
When you create a background audio app that uses IMediaSource to stream audio in Windows Phone Runtime 8.1, the app's components eventually…

Alovchin
- 663
- 3
- 9
4
votes
0 answers
Chrome for Android HTML 5 background audio stops
I'm writing a webapp that uses the HTML 5 audio tag to play back mp3 Shoutcast streams.
With the stock Android browser (and Safari on iOS), I can lock the phone and the sound keeps playing indefinitely. With Android Chrome (I'm running v31 on…

Will Jenkins
- 9,507
- 1
- 27
- 46
4
votes
0 answers
How to fix MP3AudioStream error?
I'm getting the following error randomly (and sometimes consistently on launch). It can happen when there are background threads and when there aren't and it seems to be a problem with the library so I'm having trouble tracking down the problem in…

Kudit
- 4,212
- 2
- 26
- 32
4
votes
1 answer
iOS MPMoviePlayerController playing audio in background
I have MPMoviePlayerController that should play video's audio in background and should be controlled by the multitasking play/pause controls.
After updating .plist file with Required background modes and calling the following:
-…

jkigel
- 1,592
- 6
- 28
- 49
4
votes
2 answers
How to detect if background music is playing in WP8?
If anyone has developed WP apps before you know that you can't pass certification if your app stops music that is currently playing without the users consent.
I did see this question here which might have worked for WP7 apps but it apparently…

Edward
- 7,346
- 8
- 62
- 123
3
votes
1 answer
React Native - Turn off audio playing in background after certain time
I went through every possible resource to find a way to stop the audio play in background.
setTimeout(() => {
//Turn off the music
console.log('TURNING OFF MUSIC AFTER 4 MINS');
}, 240000);
Case 1: iOS
Playing audio, app is put into…

Bikram Thapa
- 1,329
- 1
- 16
- 29
3
votes
1 answer
Windows 10 BackgroundMediaPlayer SystemTransportControls Pause Button Not Working
I have recently decided to add Background Audio playback support for podcasts in my app. I have got most of it to work but, the pause button in the SystemTransportControls of the BackgroundMediaPlayer doesn't seem to do anything.
Here is my…

Pranav Kulkarni
- 61
- 3