If I don't receive remote control event (as the comment suggested), I fail to restart AudioUnit Why is RemoteControlEvent important in this case ? On Wed, May 8, 2013 at 4:20 PM, Khoa Pham <onmyway133 at gmail.com> wrote: > Hi, > > As someone wondered in > http://permalink.gmane.org/gmane.comp.voip.pjsip/14083 and Ming suggested > a fix in ticket http://trac.pjsip.org/repos/ticket/1175 > We couldn't have a clue about the frustrated comments about > RemoteControlEvent, my program runs well without it > > /* Make sure that your application can receive remote control > > * events by adding the code: > > * [[UIApplication sharedApplication] > > * beginReceivingRemoteControlEvents]; > > * Otherwise audio unit will fail to restart while your > > * application is in the background mode. > > */ > > /** > > * As in iOS SDK 4 or later, audio route change property listener is > > * no longer necessary. Just make surethat your application can receive > > * remote control events by adding the code: > > * [[UIApplication sharedApplication] > > * beginReceivingRemoteControlEvents]; > > * Otherwise audio route change (such as headset plug/unplug) will not be > > * processed while your application is in the background mode. > > */ > > What do all these things mean ? > > > > -- > Khoa Pham > HCMC University of Science > Faculty of Information Technology > -- Khoa Pham HCMC University of Science Faculty of Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130508/e36525c5/attachment-0001.html>