Changes between Version 108 and Version 109 of Getting-Started/iPhone


Ignore:
Timestamp:
Mar 23, 2021 10:39:53 AM (4 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v108 v109  
    9696- Add the required permissions for camera (if you need video calls) and microphone usages. 
    9797- Define PJ_AUTOCONF=1 in your Xcode's project config. 
    98 - For Swift app: you need to create a bridging header (click File-New-Objective-C File, and click Yes when asked to create a bridging header). In the bridging header file, add all the C headers that you need, for example: `#import <PJSIP/pjsua.h>`. You can then directly call any PJSIP C API declared in those headers. If you want to use C++ API such as PJSUA2 however, you need to create your own Objective-C wrapper. For a sample Swift app, please check {{{ipjsua-swift.xcodeproj}}} located in [source:pjproject/trunk/pjsip-apps/src/pjsua/ios pjproject/pjsip-apps/src/pjsua/ios-swift] (note that this sample Swift app requires video support). 
     98 
     99=== PJSIP in Swift application === 
     100- For Swift app, you need to create a bridging header (click File-New-Objective-C File, and click Yes when asked to create a bridging header). In the bridging header file, add all the C headers that you need, for example: `#import <PJSIP/pjsua.h>`. You can then directly call any PJSIP C API declared in those headers. If you want to use C++ API such as PJSUA2 however, you need to create your own Objective-C wrapper. For a sample Swift app, please check {{{ipjsua-swift.xcodeproj}}} located in [source:pjproject/trunk/pjsip-apps/src/pjsua/ios pjproject/pjsip-apps/src/pjsua/ios-swift] (note that this sample Swift app requires video support). 
    99101 
    100102== Video Support ==