chquanquan / phonertc

WebRTC for Cordova apps

Home Page:http://phonertc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this is a fork of the project https://github.com/alongubkin/phonertc. I've just added a package.json to be compliant with cordova 7, and replaced the *.swift files to be compliant with Swift 3, according to suggestions proposed by the user @wolfmanwoking

Installation

ionic cordova plugin add https://github.com/De-Lac/phonertc.git

Disinstallation

ionic cordova plugin remove com.dooble.phonertc

Problems

  • probably, when compiling, you could have the SJProgressHUD object not recognized. Check if the file it's present in the folder of the installed plugin, otherwise manually add it. You can find this file on this repo, under /src/ios/SJProgressHUD.swift If it's still missing, add manually by XCode: open Xcode, open the project, find where are the other files .swift, right-click, add-file and manually paste the code
  • if ionic cordova build ios gives other errors, be sure to have updated your build ios version to be compiled with Swift 3. You can do it by cordova platform update ios
  • fix the headers in xcode:
    1. Go platforms/ios and click on [ProjectName].xcodeproj to open it with XCode
    2. Go to your project settings
    3. In General, change Deployment Target to 7.0 or above
    4. Go to Build Settings and change: Objective-C Bridging Header => $(PROJECT_NAME)/Plugins/com.dooble.phonertc/Bridging-Header.h Runpath Search Paths => $(inherited) @executable_path/Frameworks
    5. Go to Build Phases and unfold Link Binary With Libraries Add libicucore.dylib
  • Actually, I have still problems in compiling it with Ionic. Anyway, it's enough to have it succesfully compiled in Xcode, so at the end it works.

PhoneRTC

WebRTC for Cordova apps!

Important Note: Use GitHub issues only for bugs and feature requests! For any other questions, use the StackOverflow forum.

Features

  • Completely Open Source
  • Android, iOS and Browser support
  • Simple JavaScript API
  • Video & Voice calls
  • Group calls
  • Renegotiation (Mute, Hold, etc)

Want to learn more? See the wiki.

Use the phonertc tag in StackOverflow for Q/A.

Donate

About

WebRTC for Cordova apps

http://phonertc.io

License:Apache License 2.0


Languages

Language:Objective-C 38.0%Language:Swift 26.6%Language:Java 21.0%Language:JavaScript 12.5%Language:C 1.8%