Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davibe/cordova-webrtc-janus-gateway
An example of how to use PhoneRTC with janus-gateway
https://github.com/davibe/cordova-webrtc-janus-gateway
Last synced: 3 months ago
JSON representation
An example of how to use PhoneRTC with janus-gateway
- Host: GitHub
- URL: https://github.com/davibe/cordova-webrtc-janus-gateway
- Owner: davibe
- Created: 2015-08-25T10:03:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-25T10:26:58.000Z (over 9 years ago)
- Last Synced: 2023-03-11T01:33:38.239Z (almost 2 years ago)
- Language: JavaScript
- Size: 2.75 MB
- Stars: 15
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example of how to use PhoneRTC with janus-gateway.
- https://github.com/alongubkin/phonertc
- https://github.com/meetecho/janus-gatewayThis example reproduces the janus-gateway echotest demo therefore
it successfully sends audio and video to the webrtc janus-gateway
server and receives them back, it uses a turn server (even if it's not needed,
just to show it works).I tested it on wifi and 3g using an iphone 5, see [screenshot](sshot.jpg)
(small one is the local view, big one is the remote one).You need to roll your own janus-gateway + turn server if you want to use this.
The webapp code is a modification of the PhoneRTC example which uses AngularJS.
The interesting part was to re-use janus.js and its signalling mechanism
and adapt it to work with PhoneRTC interface. Most of what i have done
sits in TestCtrl.js and Angular-JS stuff can be stripped away easily if
you are not familiar with it.Build and run
-------------The first steps to make PhoneRTC work are described here
- https://github.com/alongubkin/phonertc/wiki/Installation
Basically
npm install -g cordova ios-deploy
cordova platform add ios
cordova plugin add https://github.com/alongubkin/phonertc.git
[manually modify ios project settings as describeed in PhoneRTC Wiki]Then you can build the web-app (app/ directory) to www/ like this
npm install .
./node_modules/.bin/bower install
./node_modules/.bin/grunt build --force
cordova prepare ios # propagates changes to www/ to the platformsAfter this you can re-open the ios project, buld and run (on device).