Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 58

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
06/04/13 08:32 AM (12 years ago)

Background Audio With Stream Audio Plugin!

I recently changed my audio player from an html5 player using the custom url plugin to the Stream Audio iOS plugin. I also added the extra bit of code needed for the Stream Audio plugin to play, when the device goes into sleep mode or when I exit the screen to continue browsing through the app. The problem I have is that previously when using the custom url plugin to stream my audio, if I received a phone call the stream would stop when I answered the phone but would continue once the call ended. This doesn't happen with the Stream Audio plugin and actually the stream will stop when a call is coming in and answered but the stream won't continue when the call ends like previously using the custom url plugin and the stream will start at the beginning and its really annoying as you can imagine if you get 2/3 calls the audio stream will start from the beginning every time after my call ends. How can I rectify this issue? Can this be resolved? Any suggestions, would be really appreciated.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/04/13 11:43 AM (12 years ago)
Hi dragon, Please read the manual of the plugin and look for the part of the backgroun audio. I just tested this again and works like a charm. Hope this helps. Best Regards, Danny
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
06/04/13 11:48 AM (12 years ago)
Will do
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/19/15 04:05 AM (10 years ago)
@Dragon007 what code did you use to keep the music playing in the background? I've followed the manual but it stops when it goes into the background or open another application. I'm testing on my phone ios 8.2 ..thanks for any tips Works on the simulator like it should. Do I have to change some settings?! Weird
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.