Changes between Version 106 and Version 107 of Getting-Started/iPhone


Ignore:
Timestamp:
Feb 11, 2021 3:58:12 AM (4 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v106 v107  
    4141Open {{{ipjsua.xcodeproj}}} using Xcode in [source:pjproject/trunk/pjsip-apps/src/pjsua/ios pjproject/pjsip-apps/src/pjsua/ios]. If you enable video and use libyuv/libopenh264, add the libraries into the application. Build the project and run. You will see telnet instructions on the device's screen. Telnet to this address to operate the application. See [wiki:PJSUA-CLI PJSUA CLI Manual] for commands available. (For release 2.1 and below, ipjsua is located in [source:pjproject/trunk/pjsip-apps/src/ipjsua pjproject/pjsip-apps/src/ipjsua] and does not have CLI telnet feature). 
    4242 
    43 To use PJSIP in your application, you need to define PJ_AUTOCONF=1 in the Xcode's project config. 
    44  
    4543Notes: 
    4644 * the {{{./configure-iphone}}} is a wrapper that calls the standard {{{./configure}}} script with settings suitable for iPhone target. 
     
    9189 
    9290[[BR]] 
     91 
     92== Using PJSIP in your application == 
     93 
     94To use PJSIP in your application, you need to: 
     95- Add the required libraries and frameworks. One way to do this is by drag-and-dropping the libraries and frameworks from our sample app. Then add the library and header search paths in "Build Settings". 
     96- Add the required permissions for camera (if you need video calls) and microphone usages. 
     97- 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]. 
    9399 
    94100== Video Support ==