Integrate Linphone in own iOS project

后端 未结 2 1375
盖世英雄少女心
盖世英雄少女心 2021-02-06 19:53

I am creating a voip call based project with Linphone and I have also successfully build and run the Linphone project and successfully run audio and video call. Now I am integra

2条回答
  •  逝去的感伤
    2021-02-06 20:44

    • Download Liblinphone iPhone SDK from the link: http://www.linphone.org/releases/ios choose latest one.
    • Move two folders (include and lib) to your project folder
    • Add paths to these folders in your project Build settings - INCLUDE folder goes to headers and LIB folder goes to libraries.
    • In General tab in Linked frameworks add all files from LIB folder
    • Download/clone the repo https://github.com/BelledonneCommunications/linphone-iphone
    • Find 4 files: LinphoneManager.h/.m and Utils.h/.m , include them in your project folder and add them to the left pane to other class files also
    • Try to compile your project - xCode will spam you with errors - this is ok.
    • You need to inspect errors and just delete all file imports causing errors (Some Linphone Address book files/ some config store files and some helpers classes that you do not need for basic use in your project (because most likely you already implemented this features in your existing project))
    • Then compile again and inspect all errors in methods. Comment delete any problematic chunks of code (there will be about 10-15 of them).

    LinphoneManager class already include many useful features - like good watch and use of linphone core with good logging and etc and etc, but not all of them (unfortunately).

提交回复
热议问题