I was faced with the one problem.
AuidoStream doesn't works in Background mode.
So I added the "Required background modes" in Info.plist and selected "App plays audio".
But AuidioStream doesn't works in background mode yet.
In original, I had a sample AudioStream code.
I changed the some UI. origin audiostreamer works in background mode after i did like above.
But the audiostreamer that i changed some UI doesn't works in background mode.
I can't guess why this happens.
Please let me know if you know about this.
Thanks
Regards!
i had the same problem it was solved by using Required background modes in Info.plist and App plays audio. make sure you have not stopped the stream explicitly on viewDidUnload or viewWillDisappear kind of methods
Related
I have this media player project and I have foreground service in it which allows me to control the song through notifications even if I clear the app in the background. Everything is working fine including the controls in the notification. But...the notification just remains forever and cannot be cleared even if I try to clear it until I re-run the app or restart my phone. Please help. Tried things like setAutoCancel(true) and etc
Are you calling
stopForeground()
?
This method takes a Boolean to indicate if you want to remove the notification as well.
Read this article
I'm working on adding universal links to my iOS app and I'm figuring things out but I'm a little lost on what to do when the app is not fully close, just running in the background.
when I debug through the app, it goes to WillContinueUserActivity then it goes to ContinueUserActivity which is fine and expected but I noticed in doing this that the previous screen the user was on is still visible during all of this, is that expected?
I'd prefer to have it seamlessly go to the desired screen and not have some jarring transition.
I think it is expected and by design. You can't make those previous screens invisible programmatically.
Universal links will make the app open the desired page as soon as possible.
My app has an activity use portrait mode(android:screenOrientation="portrait" in AndroidManifest.xml), for some reasons, I can't modify its screnOrientation value. Now I have to integrate the Google Cardbord feature to this activity, but the render looks weird as below picture shown, how can I fix this case? Thanks a lot!
The system ignores screenOrientation if the activity is running in multi-window mode. Can you verify that you are not running in this mode?
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
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