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
1 answer
Error when adding music files to the AudioTrack list - WP8
I'm new to on the app development scene, and I'm building a music player for Windows Phone.
The problem is when I try to import music from the local Music Library to my app.
I have an AudioPlaybackAgent and a List of music that it will play.
Here's…

Marlon Santos
- 29
- 4
0
votes
0 answers
How to play a StorageFile music in BackgroundAudioPlayer in Windows Phone Runtime?
I have a StorageFile instance in the foreground refers to a music file. I want to play it in the BackgroundAudioTask but the problem is:
I can't set the file in the foreground using SetFileSource() since as
it is said:
make sure you define all…

user3646098
- 299
- 3
- 14
0
votes
2 answers
Play Background Audio on MVVM on windows phone 8.1
Im Realy stuck at this. No one on MSDN foruns was able to help me so far.
I have a MVVM app, an edited AppStudio App. Im adding a podcast feature on the app. The feature works perfectly exept for the fact that the podcast audio never plays on…

user3720810
- 3
- 1
- 2
0
votes
1 answer
Audio plays in background but no sound Cordova 3+ IOS
I'm playing a mp3 file. I used cordova 3+
I'm using
snd = new Media(source,onSuccess,onplayError,mediaStatus);
snd.setVolume(current_volume);
snd.play();
Everything goes well. Then I set these in info.plist
Application does…

AtanuCSE
- 8,832
- 14
- 74
- 112
0
votes
1 answer
Open local database from Playback Audio Agent WP8 c#
I want to create the background audio _playlist from a local database table (LINQ).
Here's the code in AudioPlayer.cs in the PlaybackAudio project:
private static List _playList = new List
{
new AudioTrack(
…

user3630167
- 3
- 3
0
votes
1 answer
WP8.1 BackgroundMediaPlayer not playing on device, but works on emulator
I have a universal Windows store project. In Windows Phone part, I use a BackgroundMediaPlayer.Current to play audio. The app getting access to media files through KnownFolders.MusicLibrary.
The problem is when I run my app on emulator with virtual…

Ermiq
- 179
- 4
0
votes
0 answers
Error 0x80070057 in BackgroundAudioPlayer
Sometimes (rarely) while running my App, I get an error 0x80070057 thrown by BackgroundAudioPlayer. As I've observed it happens for a scenario like this:
I start to play the song,
I pause it,
Wait some time - few hours (BAP with the song stays in…

Romasz
- 29,662
- 13
- 79
- 154
0
votes
0 answers
BackgroundAudioAgent with a dynamic playlist
I am developing an app that has the capability of playing audio tracks streamed from a server. This app needs to be able to playback the audio even when the screen is locked or if the app is put in background.
=====
For background audio playback in…

rydgaze
- 1,050
- 13
- 24
0
votes
1 answer
Play Certain Track With BackgroundAudioAgent Issue
I am having an isssue about playing a certain audio among List which is being played on background. Is there any way to pass the data from app to background audio agent and, let say, play the 5th audio like Spotify does.
The sample I am working on
…

Burhan Ayan
- 23
- 1
- 7
0
votes
1 answer
Windows Phone 8 Background Agent and UI Update
I am using the Background Agent to play audio.
I need to synchronize this audio and some Html / JavaScript code present within the app.
However, if the Html code which I need to run is displayed in a "WebBrowser" coltrol, then that code will be…

user3261909
- 145
- 1
- 2
- 11
0
votes
0 answers
Windows Audio playback agent update title and artist live
How could i update the windows audio playback agent properties like title and artist, live ,when it is playing. I want to update the title every 20 seconds without stopping the music which is playing? please help. I tried this but its stopping and…

aodpi
- 49
- 1
- 7
0
votes
0 answers
Setting AlbumArt of AudioTrack
I'm using Background Audio Player on Windows Phone 8 and I'm trying to set an album art for my audio track. As I've read here and at MSDN the image MUST be at shared/media/ - ok I've checked the image is there and I try to do:
AudioTrack myTrack =…

Romasz
- 29,662
- 13
- 79
- 154
0
votes
3 answers
audiotrack position update windows phone
I am playing audio through the background audio player agent. How do I display a progress bar in the foreground indicating what position is the track currently add, like the built-in music player.

Leo Lin
- 95
- 1
- 10
0
votes
1 answer
Is it possible to run background transfer from background audio agent?
I want to run Background file transfer from Background audio agent but I get error with example code which runs correct in foreground app.
Here is example:
string transferFileName = @"http://www.reggaeavenue.com/MP3/leave%20short.mp3";
Uri…

Libor Zapletal
- 13,752
- 20
- 95
- 182
0
votes
2 answers
Windows 8.1 background audio - what's the way to show SystemMediaTransportControls
I try to build a Windows 8.1 app with background audio, and when the app goes off screen the music is ok, but no SystemMediaTransportControls shows although I set it in code:
SystemMediaTransportControls smtc;
public MainPage()
{
…

w.b
- 11,026
- 5
- 30
- 49