background-audio

Setting AlbumArt of AudioTrack

99封情书 提交于 2019-12-02 09:11:43
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 mentioned here at MSDN and I also see no image. 来源: https://stackoverflow.com/questions/21365048/setting

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

寵の児 提交于 2019-12-02 07:35:18
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 skipBackwardCommand] setEnabled:NO]; [[rcc nextTrackCommand] setEnabled:NO]; [[rcc previousTrackCommand]

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

笑着哭i 提交于 2019-12-01 21:33:19
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 Background Music and for playing 2 Background Musics at the same time, the apps are Crashing. It can

How can I save the settings in the IsolatedStorage while BackgroundAudioPlayer's instance is active?

柔情痞子 提交于 2019-12-01 14:14:47
I have Two projects in my Solution. Let's say Project A and Project B. Project A It's the main project and has settings. I have a check box to give user an option to "Repeat" track(s). This project can also access PROJECT B's public instances. Project B It's the BackgroundAudioAgent and has it's own settings. This project doesn't have access to PROJECT A settings. Therefore, in PROJECT A , I need to access the settings of PROJECT B and save it there. So that, when the "Repeat" is enabled, the agent restarts playing. PROBLEM I am unable to save the settings (in other words, the settings are

HttpWebRequest from AudioPlayerAgent

北城余情 提交于 2019-12-01 14:00:00
问题 I'm creating an app that plays an endless audio stream. There is a separate web service that I can query to get the title and artist of the currently playing track. What I want to do is query that service every 20 seconds and then set the track title/artist accordingly. Currently I'm using a background AudioPlayerAgent so that the stream can be played outside of my application. Here is the code I have so far: public AudioPlayer() { if (!_classInitialized) { _classInitialized = true; //

How to reuse BackgroundAudioPlayer after Close method called

Deadly 提交于 2019-12-01 13:21:25
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 to MediaElement playback. 2. There is only one media queue. Your application cannot pause background

WP7 background audio resources are no longer available

泄露秘密 提交于 2019-12-01 12:52:06
I'm using BackgroundAudioPlayer for my Windows Phone 7 music & video application. After I play some music, I play video using MediaPlayerLauncher , then press Back to return to my app. There whenever I use BackgroundAudioPlayer.Instance . I receive error " The background audio resources are no longer available ". Someone on MSDN suggests using try/catch, but this is not a good idea, and can slow down the app. Other suggests call BackgroundAudioPlayer.Instance.Close() before launch MediaPlayer . However, when I play music, the agent load .dll again, which takes very much time. How to fix this ?

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

杀马特。学长 韩版系。学妹 提交于 2019-12-01 12:06:47
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 continuously streamed? I have tried to use Background Audio Agent and set Media Element but none of that has been working for me. Would Background Audio Streamer be an option for me? I would be happy for any similar example that I would use to my advantage. Thank you I found phonesm project on codeplex that provides great examples and functionality for

WP7 background audio resources are no longer available

微笑、不失礼 提交于 2019-12-01 11:45:15
问题 I'm using BackgroundAudioPlayer for my Windows Phone 7 music & video application. After I play some music, I play video using MediaPlayerLauncher , then press Back to return to my app. There whenever I use BackgroundAudioPlayer.Instance . I receive error " The background audio resources are no longer available ". Someone on MSDN suggests using try/catch, but this is not a good idea, and can slow down the app. Other suggests call BackgroundAudioPlayer.Instance.Close() before launch MediaPlayer

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

允我心安 提交于 2019-12-01 08:52:10
问题 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 continuously streamed? I have tried to use Background Audio Agent and set Media Element but none of that has been working for me. Would Background Audio Streamer be an option for me? I would be happy for any similar example that I would use to my