diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-02-15 05:33:23 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-02-15 05:33:23 +0000 |
commit | 931198a3148faa32bf0620eae5891cb1fbf51027 (patch) | |
tree | f6032bc2f09fc80a5dfb0b1c0551721cf90992cf /pjsip-apps/src | |
parent | 4477551db5dbf220762db3e1dc8afa2a4d75e46f (diff) |
Re #1174: fixed crash when pjsua is restarted, causing inClientData to be invalid since AudioSessionInitialize can only be called once.
Re #1175: cleaning up interruption and audio route handling in coreaudio for iOS. In the case of interruption, there is no need to reinstantiate the audio unit (a simple restart will do), while for audio route change, nothing needs to be done.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3413 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r-- | pjsip-apps/src/ipjsua/Classes/FirstViewController.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pjsip-apps/src/ipjsua/Classes/FirstViewController.m b/pjsip-apps/src/ipjsua/Classes/FirstViewController.m index 8cd37e8f..0a4044f4 100644 --- a/pjsip-apps/src/ipjsua/Classes/FirstViewController.m +++ b/pjsip-apps/src/ipjsua/Classes/FirstViewController.m @@ -56,6 +56,8 @@ - (void)viewDidLoad { [super viewDidLoad]; + [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; + ipjsuaAppDelegate *appd = (ipjsuaAppDelegate *)[[UIApplication sharedApplication] delegate]; appd.mainView = self; textField.delegate = self; |