Questions tagged [background-audio]

Refers to the process of playing audio files in a background agent. Most relevant for Windows Phone and WinRT

142 questions
3
votes
0 answers

UWP background audio works on PC but not mobile

Hello I'm building a UWP radio app where the user can select different radio stations and podcasts. I have made my design so i have implemented a splitview where when a user starts playing audio a MediaElement will show up in the buttom of the…
3
votes
2 answers

BackgroundAudioTask not working after cancelled by another app

When the BackgroundAudioTask for my app is cancelled by other app on Windows Phone 8.1 which also uses BackgroundAudioTask, when I go back into my app, it will no longer play audio in the background. It will play fine when the app is running but if…
Moresby
  • 79
  • 7
3
votes
1 answer

How to access media library in WP 8.1?

Microsoft recommends using BackgroundMediaPlayer to play background audio in WP 8.1 Official sample access to music files: BackgroundMediaPlayer.Current.SetUriSource(new Uri("ms-appx:///Assets/Media/Ring01.wma")); But this example does not explain…
Boris Salimov
  • 663
  • 2
  • 7
  • 18
3
votes
2 answers

WP8.1 BackgroundMediaPlayer Issue: Send messages with data between Foreground and Background

i read the msdn overview on Background audio and took a look at the example app but I'm a little bit confused about messages and the data that could be exchanged through them. ValueSet messageDictionary = new…
formatC
  • 83
  • 6
3
votes
1 answer

Windows Phone 8 - 2 Background Audios Clash and both of the App terminates

around a week ago, I submitted an online Background Radio Streaming app for the Windows Phone store. The app was quite good (as I used the Emulator to test it, it was good on all the possible sectors) but when I submitted it for certification, it…
3
votes
1 answer

Windows Phone - update live tile from background agent with custom image

I am trying to add cloud image to album cover if the cover is loaded from internet. I am trying to do this in Background Audio agent and I think I almost got it. The problem is that I have black image in tile. Few times when testing I got cover…
3
votes
2 answers

BackgroundAudioPlayer won't release music file

I am using the BackgroundAudioPlayer to play audio files stored in the isolated storage. The user may want to delete one of these files. If the file is playing, the file is locked by the BackgroundAudioPlayer. Only after the track has finished…
BrainProxy
  • 107
  • 7
2
votes
0 answers

Upon screen lock video is paused if it doesn't have any volume

In my app, audio and video play even if the screen is locked, with controls of play and pause displayed on the locked screen. However, I am surprised to observe that when the video doesn't have any volume and I lock the phone, then the video also…
A_G
  • 2,260
  • 3
  • 23
  • 56
2
votes
1 answer

Why a NSTimer can be delayed in background mode?

My app run in background and uses NSTimer to launch audio after a certain amount of time. Me and my testers have no problems with this, and audio can be launched event after several hours in the background (>10h). My issue is that some users reports…
OthmanT
  • 223
  • 3
  • 13
2
votes
1 answer

How to play audio from live streaming in backgroung iOS Swift

Hai i am playing mp3 from live streaming using MPMoviePlayerController but it doesn't play when app is running in background. and it stop playing when the phone is locked. please tell me how can i play live streaming audio both in background and…
2
votes
1 answer

What's the easiest way to play audio in background in UWP?

I am working on my Project (a soundcloud client) and the app can play tracks just fine, but not when the app is minimized. I use the MediaElement-Object for playing the mp3 from the url. How can i force the music to continue playing the music, when…
Flauschcoder
  • 153
  • 1
  • 13
2
votes
1 answer

Windows Phone 8.1 Background Tasking is not stopping?

I have designed a music player for windows phone 8.1. When i clicked the play button foreground app sends the messsage to background audio class. background audio class plays my music. All is ok. But i have a problem. When i close my app (pressin…
2
votes
0 answers

Play music in background and only stop in certain instances

I have an app that shows videos in a timeline. The videos autoplay and by default they should be silent. If the user is playing music in the background, music should not stop at this time. It is only when tapping the video that it should actually…
Sorin Cioban
  • 2,237
  • 6
  • 30
  • 36
2
votes
1 answer

Accessing BackgroundMediaPlayer from another task

I have an app which has two background tasks: a background audio task and a Bluetooth task. What I want to do is modify the state of the audio playback from within the code in the Bluetooth task without having to go through the foreground app. I…
Ali250
  • 652
  • 1
  • 5
  • 19
2
votes
3 answers

Windows Phone 8 - Playing streamed audio (internet radio station)

I am trying to make an application that would play an audio stream (mp3) from the following URL http://icecast6.play.cz/radio1-128.mp3. I am struggling to get it working. Is there any default support for cases like these? That the content is…
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
1
2
3
9 10