background-audio

How to reuse BackgroundAudioPlayer after Close method called

可紊 提交于 2020-01-21 09:50:20
问题 I’m using MediaElement for playing videos and BackgroundAudioPlayer for playing audio. Here is a case. I’m playing remote audio via BackgroundAudioPlayer. Then I want to play video and before MediaElement begins playing video I’m calling BackgroundAudioPlayer.Close as suggested in BackgroundAudioPlayer best practices. MediaElement and the BackgroundAudioPlayer Care must be taken when mixing BackgroundAudioPlayer and MediaElement for audio playback. 1. Close() must be called before switching

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

主宰稳场 提交于 2020-01-11 09:36:10
问题 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 failed. According the the error log, if someone is already playing a Music from Music + Video hub and then tries to open this app, both of the apps Crash and stop unexpectedly. So far I understood, it is because the Music of Music + Video hub is also

Is it possible to hide all the controls when screen is locked? - objective c

戏子无情 提交于 2019-12-31 05:26:06
问题 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 because when you try to disable all then the screen starts showing 3 controls (toggle button, next track, previous track) MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc

How to reload playlist in BackgroundAudioPlayer?

匆匆过客 提交于 2019-12-24 11:17:46
问题 I have a solution, which includes 2 projects: main progect, and PlayListFilePlayBackAgent. in main project, in MainPage a have a listBox, which shows different content. Some content has audioformat, and when i see title, and performer in listbox's item - i click button "play" in this listbox's item. This button make some operations(take track's urls from some server) and than go to page AudioPage. In AudioPage some method make a playlist from those urls, than its saves in isolatedStorage in

avplayer doesn't pause when clicked on pause button if screen is locked

…衆ロ難τιáo~ 提交于 2019-12-23 15:31:36
问题 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 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc skipBackwardCommand] setEnabled:NO]; [[rcc nextTrackCommand] setEnabled:NO]; [[rcc

avplayer doesn't pause when clicked on pause button if screen is locked

我的未来我决定 提交于 2019-12-23 15:27:07
问题 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 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc skipBackwardCommand] setEnabled:NO]; [[rcc nextTrackCommand] setEnabled:NO]; [[rcc

How to detect if background music is playing in WP8?

我只是一个虾纸丫 提交于 2019-12-21 05:43:14
问题 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 doesn't work for WP8. I assume it doesn't work because the WP8 OS doesn't support XNA (It is only backward compatible, and if you developed the app using 7.1). Has anyone come across the solution for detecting background music in WP8. 回答1: I believe

Setting AlbumArt of AudioTrack

谁说胖子不能爱 提交于 2019-12-20 07:08:45
问题 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 = new AudioTrack(track.source, track.Title, track.Artist, track.Album, new Uri("shared/media/Episode29.jpg", UriKind.Relative)); The music starts, but there is no image. Am I doing something wrong? I've also run Background Audio Player Sample

iOS MPMoviePlayerController playing audio in background

喜欢而已 提交于 2019-12-17 18:33:46
问题 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: - (void)startBackgroundStreaming { [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; [self becomeFirstResponder]; NSError *activationError = nil; AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory

Audio plays in background but no sound Cordova 3+ IOS

China☆狼群 提交于 2019-12-12 02:49:44
问题 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 not run in background - NO Required background modes: Item0 - Audio...............etc. Then I tried this if ([resourceURL isFileURL]) { [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; audioFile.player = [[ AVAudioPlayer alloc ]