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
2
votes
2 answers
Update Album Art Windows 8.1 Store App
I'm trying to update the album art for a background playing track in Windows 8.1 Store app (C#/Xaml) but although I get no exceptions, the image doesn't update in the little transport popup...
this is the code I'm executing to update it:
var…

SelAromDotNet
- 4,715
- 5
- 37
- 59
2
votes
2 answers
Windows Phone Development - IsolatedStorage
I am using IsolatedStorage to communicate with the Audio agent as below:
In each of my pages:
private void playButton_Click(object sender, RoutedEventArgs e)
{
if (PlayState.Playing == BackgroundAudioPlayer.Instance.PlayerState)
…

richard chaaya
- 47
- 6
2
votes
2 answers
Background Audio Playback Agent terminates during playback Windows Phone 7.5
So I have a problem with the Background Audio Playback agent in WP 7.5, where I think it is getting terminated by the OS randomly during playback.
I have an app which implements a BAP agent which plays a number of mp3 files based the selected…

user1573896
- 35
- 6
2
votes
1 answer
Retrieving Media Information from background audio stream in Windows Phone
I have a live mp3 stream that I am playing using the BackgroundAudioAgent and an AudioPlayerAgent. Since the feed is a mp3 stream I didn't see a reason to create a AudioStreamingAgent. The stream plays as expected.
Is it possible to get track…

Chris Gonzales
- 1,180
- 1
- 13
- 31
2
votes
1 answer
Background Audio Track Ready not working properly Windows Phone 8
I've found a strange problem and I'll try to explain it as short as possible.
ASSUMTIONS:
According to my knowledge as you set a new AudioTrack to AudioPlayerAgent, two task are queued: Stop(), and TrackReady();. Seems logic and in most cases works…

Romasz
- 29,662
- 13
- 79
- 154
2
votes
1 answer
What causes a System.Runtime.InteropServices.COMException at BackgroundAudioPlayer.get_Position()?
Sometimes I'm getting an exception when trying to get the position of the BackgroundAudioPlayer.Instance. It's happening very rarely, but I've been able to get a StackTrace. The strange thing is, this code is executed every second while playing a…

Mark Monster
- 397
- 3
- 10
2
votes
3 answers
BackgroundAudioPlayer is 'Playing' but not calling GetSampleAsync()
I am streaming music from the web in a background agent using a custom MediaStreamSource. In good network conditions this works fine, but when network connectivity is spotty a strange problem surfaces.
When a track starts playback, all goes well up…

Ben
- 6,023
- 1
- 25
- 40
2
votes
1 answer
InvalidOperation Exception, Background Audio Agent, Windows Phone 8
I'm trying to add a background AudioPlayer to a windows phone 8 application.
I've created the main project and the background audio agent. I've added a reference to the background audio player to the main project, and added the following into the…

David Gordon
- 554
- 2
- 8
2
votes
0 answers
WP7 Background Audio - Memory Leak or Not?
I'm creating an app that plays background audio.
Here's the RAM usage of my background audio playing process:
Is this a memory leak or no?
I'm concerned because if / when it exceeds 15MB, the OS will silently kill my player, which is…

Soonts
- 20,079
- 9
- 57
- 130
2
votes
1 answer
How to handle error when two apps are using BackgroundAudioPlayer
This is another background audio resources are no longer available error in Windows Phone 7, but a different scenario. I have 2 apps, which both use BackgroundAudioPlayer to play background music.
When app A is playing background music, I press Home…

onmyway133
- 45,645
- 31
- 257
- 263
1
vote
2 answers
How can I pause current Zune song, play my own sound with the BackgroundAudioPlayer, then resume the Zune song?
I'm trying to get a warning sound in one of my apps to play over whatever is playing in Zune. I am using a BackgroundAudioPlayer to play my sound.
Right now when my warning sound plays it stops the current Zune song. Is there any way to pause the…

Chad Mildenberger
- 11
- 2
1
vote
1 answer
Apple doesn't accept submission of the app into the store using just_audio_background package for flutter
I followed the instructions on how to setup an app to use background audio from the just_audio_background package (https://pub.dev/packages/just_audio_background).
Unfortunately in the next app submission to the store, apple declined it with the…

Felipe Xavier
- 41
- 6
1
vote
2 answers
BackgroundAudioPlayer music streamin not working on some uri`s
I´m currently building a web radio streaming app using the BackgroundAudioPlayer.
The problem is that some uri´s don´t work, others do..
Example of a working url: http://lyd.nrk.no/nrk_radio_p2_mp3_h
Example of a non working uri:…

Zelleriation
- 2,834
- 1
- 23
- 23
1
vote
1 answer
flutter audio_service: AudioProcessingState not updating after completely playing media item
I developing a music player application in flutter.
Scenario:
When user selects one song from list, once the selected song is completely played, automatically need to start the next song in the list.
Currently I am listening to PlaybackState,…

Kotturu Satish
- 23
- 4
1
vote
3 answers
iOS 14 Play audio from video in background
iOS 14 play audio from video in background:
Audio is paused when app enterbackground (even I turn on background mode in Capability).
If avPlayer is playing in foreground, user push device lock-button, and it happens.

Tung Dang
- 246
- 3
- 7