rawars / ApiRTC-ionic

Webrtc sample with ionic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ApiRTC P2P call sample on Ionic (Cordova/Angular)

Installation

First install Ionic: npm install -g @ionic/cli

Follow this link to get started with ionic

iOS

Install Xcode, see details: https://ionicframework.com/docs/developing/ios

Then run: ionic cordova prepare ios

During the execution accept installation requests.

Then run *.xcworkspace Xcode project from platforms/ios folder.

Setup certificates inside Xcode -> Signing & Capabilities project section.

Then build from Xcode.

Read more about iOS deploying

You can test the app with our web P2P call sample

Android

Install Android Studio, see details: https://ionicframework.com/docs/developing/android

Then add Android platform compatible with used device Android version:

eg: ionic cordova platform add android@9.0.0

Add required permissions to platforms/android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

Then compile and deploy app to the connected device:

ionic cordova run android --device

You can test the app with our web P2P call sample

Requirements

  • Ionic 5+
  • iOS: cordova-ios 5.1.1+
  • iOS: cordova-plugin-iosrtc 6.0.11 version temporary fixed due to degradations of its components (details). Better check your package.json before rebuilding actions to verify you had this fixed version.
  • iOS: Xcode 11.5+
  • iOS: iOS 13.5+

The app may work on lower iOS versions, but don't report issues.

  • Android: app tested on Android 10 API 29 + cordova 9.0.0. It should work on lower versions, just be sure that your stack (Android version, cordova-android verision etc) has API compatible parts

ApiRTC key

For this demo we use myDemoApiKey api key. Please register on our website to get your private api key.

About

Webrtc sample with ionic


Languages

Language:TypeScript 56.5%Language:CSS 29.5%Language:HTML 7.7%Language:JavaScript 6.2%