In my WP8 app, there is a background audio that plays throughout my App.
When I minimize the App, the audio obviously goes off as it is supposed to do. However, when I resume the app, the audio does not continue, that is totally stops!
Another interesting thing to be noted in my App is that after resuming, only the background music is affected whereas other audio that need to be played for a short duration, say for example on a button click, function normally as expected.
I think it's got something to do with the App's life cycle and Fast App Resume feature.
Kindly help me out. Thanks.
If you're not working on with the BackgroundAudioPlayer, then you should check this in order to play Background Audio within your application.
Reference: Background Audio Streamer Sample
Related
I've built an audioPlayer Capsule that retrieves and plays a playlist of audio from a remote endpoint.
In the simulator and on my Galaxy s9, I can invoke the Capsule & play audio. I can also use the navigation controls to skip forward / go back.
However, in both the simulator & the device, Next, Previous, Pause, Stop, and Resume commands are all interpreted as PlayPlaylist Actions (which passes my playlist to audioPlay.PlayAudio) and simply start playing the audio from the beginning.
Do I need to hook into or build new Actions to manually trigger these audio control functions? I figured these would be "free" or built-in.
Additionally, I'm trying to figure out how to identify which AudioItem index I'm playing, so I can update the result view.
Voice command such as play/stop/next/previous/resume are built-in for audio player (not the library, but in marketplace itself).
Thus, developer at current stage has no control over the audio player once start player and has to rely on the voice command.
As a result:
Developer should NOT add training for these voice command.
There is no way to test the voice command in IDE or on-device testing, but rest assured that once your capsule released to marketplace these voice command would work.
You can check any of the sleep sound capsule in market place and verify the feature. None of them has training for voice command.
I haven't seen that behavior. Since you have an S9, you can confirm in the Bixby Market place with an existing capsule that's using the audio player. For example, you can enable AudioBurst. Start the audio player, then click on the Bixby button and and say similar commands like...
Next, Previous, Pause, etc
I was getting the expected behavior. If you're not, it might be something related to your specific capsule. Please confirm at your convenience.
Hi i am implementing vungle using the plugin for corona sdk.
The video shows fine but the advert plays over the top of my background music / sound.
I have tried calling audio.pause and audio.setVolume(0) before the advert is shown but that doesn't work, even if i call audio pause or setvolume and then show the ad wih a second delay.
The audio is paused but then resumes when the advert plays one second later.
E-mailed vungle but haven't had a reply.. I saw a post on the dev forums about it but it had no replies so i know other people have had the same problem just wondered if anyone has a solution?
Thanks!
I want to play two audio files simultaneously in WP8 from within the same app:
The first one will be launched by "BackgroundAudioPlayer.Instance.Play();".
The second one will be launched by an HTML5 "audio" element within a Html file of the app.
The scenario would be something like this:
When the user launches the app, the background music starts playing.
When the user goes to a particular Html page of the app, its associated music starts playing.
When the user switches the app or locks the screen, the music of that Html page stops, however, the background music keeps on playing until the app is closed.
When the user comes back to that Html page again, its associated music starts playing along with the background music.
Appreciate your suggestions on this.
Thanks.
Together, we have tested a very simple App trying to play simultanously two audio files. The App worked like this:
Play button has started audio file via BAP
then we have navigated in WebBrowser to a page (located in IsolatedStorage) where there was an audio element
and we have pushed play button in WebBrowser (still BAP playing in the background)
It turned out that WebBrowser uses BAP as a player, so after we have pressed the button, our poor BAP playing in the background was terminated and replaced with new fresh one from WebBrowser.
It means that our magnificent idea and superb plan had withered on the vine.
So crap....
You'd need to build a player in your app so it could run simultaneously to the native one.
This explains why you cant run a gif and play music simultaneously.
I'm building an app that uses AVAudioPlayer and MPMoviePlayerController. The sound works perfectly on the simulator. I know sound works on my phone because other apps play sound just fine (like this one used to). When I start the video, I hear about 0.2s of the background music that's supposed to be playing. I'm getting no errors.
I don't even know where to start on this one. Any idea?
I was getting the "occasional" blip of sound in my app, so I assumed my volume was fine. It turns out that my phone was switched to vibrate aka silent. I flipped the switch back and viola.
The new question is: Do I feel like a moron? Yes I do.
** EDIT **
I stumbled upon the idea to check the switch when I read an article on Understanding the Side Switch
I'm pretty new to IOS4 audio/multitasking and i cant find an answer on this topic:
Got a, pretty easy, two part question:
What framework works in conjunction with the ipod framework? Everyone's seen the pandora app, so the question is:
How do you get the app to notify the user that music is playing (via the purple play icon in the status bar)?
How does this become controllable via the multitasking control bar (ya know, the ones right next to the lock-aspect button)?
It's all the same process.
The play icon is added when you successfully link up your app with the remote play controls (remoteControlReceivedWithEvent). The controls are just events that are channeled to your remote control aware app.
TYPE of audio doesn't matter, as far as i know (MPAudioPlayer doesn't work in the background though).
Hope that helps the newer coders out there :)