PhoneRTC demo application

前端 未结 2 1956
生来不讨喜
生来不讨喜 2021-02-03 15:57

I am Trying to get PhoneRTC demo up and running. https://github.com/alongubkin/phonertc/

I actually have a bunch of doubts

First of all, my understanding: 1. We

2条回答
  •  你的背包
    2021-02-03 16:42

    Amazon provides Elastic IPs which allow you to make permanent IP addresses for your EC2 hosts.

    Here are the full commands required to run the demo from scratch:

    # install global dependencies
    npm install -g cordova bower grunt-cli
    
    # clone phonertc
    git clone https://github.com/alongubkin/phonertc.git
    
    # build client
    cd demo/client
    npm install
    bower install
    
    cordova plugin add org.apache.cordova.device
    cordova plugin add org.apache.cordova.console
    cordova plugin add https://github.com/alongubkin/phonertc.git
    
    # follow the instructions for iOS after running this command
    cordova platform add ios android  
    
    # before running the next command, make sure to
    # change your server details in demo/client/app/scripts/signaling.js 
    # and in demo/client/app/scripts/CallCtrl.js 
    grunt build --force
    
    # build server
    cd ../server
    npm install
    

    To run the server:

    cd demo/server
    node index.js
    

    To run the client on Android:

    cordova run android
    

    To run the client on iOS run:

    cordova build ios
    

    And run the project from Xcode on a real iOS device.

提交回复
热议问题