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
0
votes
0 answers
Is it possible to hide all the controls when screen is locked? - objective c
I want to hide all the controls on the locked screen when an app is playing in the background. However, I want the audio related information to be displayed all the time.
I read about MPRemoteCommandCenter but we can't implement the below code…

A_G
- 2,260
- 3
- 23
- 56
0
votes
1 answer
W10 Universal: how to play a song from disk using Backgroundaudio?
The Microsoft W10 Universal apps Background Audio sample can play a list of .wma files stored in ///Assets, like this:
var song2 = new SongModel();
song2.Title = "Ring 2";
song2.MediaUri = new…

Dick
- 433
- 5
- 13
0
votes
1 answer
UWP Windows 10 JS - background audio work when compile directly to my device, but not when opened from store
Let describe my issue:
I have developed JS app for Windows 10. It works on desktop- background audio, title, album cover- all stuff i need. In VisualStudio- when i deploy app to Mobile Emulator (10.10586)- still- background audio works even if app…

Boris Delev
- 424
- 3
- 16
0
votes
0 answers
Using MediaTransportControls with BackgroundMediaPlay in Background Audio Task UWP
I am building a UWP App that plays Audio in the Background. I have successfully set it up and it's running with a simple play/pause Button.
Now I need to play Audio using a MediaElement control that has MediaTransportControls enabled. I have read…

yalematta
- 1,389
- 1
- 21
- 36
0
votes
2 answers
Why does Windows.Media.BackgroundPlayback.exe crash and can I debug it?
I'm trying to implement BackgroundAudio in my UWP app and I'm following the sample on github. Yet for me before the BackgroundTask gets initialized the output returns The program '[11864] Windows.Media.BackgroundPlayback.exe' has exited with code 1…

Arn Vanhoutte
- 1,779
- 4
- 16
- 28
0
votes
1 answer
BackgroundAudio not work in windows 10 mobile
I have a list with words(about 200), which I want to play in player. This words reproduce from SpeechSynthesisStream. When I run it's in my PC, all words play perfect, but in my phone play just one word and don't move to next.
#region Helper…

Vlad Kostiushko
- 31
- 1
- 5
0
votes
0 answers
How can resume a backgroundtask instead of creating a new one?
I'm trying to implement a BackgroundAudioTask using this example, but when I close my app while the task is running, and reopen my app, it creates a new task instead of resuming the task that was already running. Because it creates a new one, it…

Arn Vanhoutte
- 1,779
- 4
- 16
- 28
0
votes
1 answer
Playback (background)audio in a Windows Universal App fails
I wanna playback some audiofiles in a UniversalWindowsApp to those I've only got the path. This is my current code:
//exception in this line:
var file = await StorageFile.GetFileFromPathAsync(@"C:\Users\myuser\Music\someartist\album\01.…

cramopy
- 3,459
- 6
- 28
- 42
0
votes
1 answer
Cannot get Background Audio work in WP81 Silverlight
I am migrating a Windows Phone 7.8 application from to Windows Phone 8.1 Silverlight - and ultimately possibly to Windows Phone 10..
But now I am stuck in a triviality of not getting Background Audio Player to work in Windows Phone 8.1 Silverlight…

juhariis
- 568
- 8
- 15
0
votes
2 answers
UWP: clear audio stream cache
I'm working on app for online radio and use Microsoft background media sample as a start point. I've set sources to URIs for my online radio, but when I begin to change channels in runtime they play from the same point as first time. I think audio…

Eugen Kotov
- 504
- 4
- 16
0
votes
0 answers
Windows Phone 8.1 MediaElement playing audio interupts background audio
I have an app that plays text to speech at certain events to let the user know what's going on. Due to the target audience of this app, it is likely that the user is playing music in the background. When I call play on the MediaElement the…

Mark Lauter
- 810
- 9
- 22
0
votes
2 answers
Background Audio Windows Phone 8.1 XAML app crashes
I have built an cross-platform app that involves playing audio (podcast mp3 files) in the background.
I have followed the examples as best as I can for performing background audio on Windows Phone 8.1 XAML apps. It will launch and try to start…

Bytemaster
- 166
- 7
0
votes
0 answers
BackgroundMediaPlayer share data with Foreground in Windows Phone
I need to share an audio file which is opened (read-only) from foreground task (UI), and is being played by the BackgroundMediaPlayer task in Windows Phone 8.1.
While it is being played in the background, I also need to access the same file from the…

user3261909
- 145
- 1
- 2
- 11
0
votes
1 answer
Stopping background audio task on app termination
Due to the way that BackgroundAudio task and app lifecycle are built up, there doesn't seem to be a way to detect actual closing of the app and stopping its background task at this point.
This creates an odd situation for the user, where she can try…

haversine
- 148
- 2
0
votes
3 answers
Background audio for next track not playing until app moves to foreground (Swift, iOS8.1)
I am building a streaming audio app using SoundCloud API. There are 4 view controllers and the 4th view controller is the now playing track VC - similar to the Now Playing scene on the Music app.
When the app is in the foreground, everything is…

inc_london
- 461
- 5
- 11