#Kurento on Meteor
these webrtc demos are based on the kurento tutorial adapted for meteor
##Installation
- install meteor with
curl https://install.meteor.com/ | sh
- clone this repo with
git clone https://github.com/inspiraluna/kurento-meteor.git
cd kurento-meteor/ PROJECTNAME
- install and run kurento docker [image] (https://github.com/Kurento/kurento-docker/tree/master/docker) please run it with
sudo docker run -d --name kurento -p 8888:8888 fiware/stream-oriented-kurento
- configure settings.json if kurento media server runs on different host
- run
meteor npm install
(install all npm modules) - configure settings.json in the project root to configure url of kurento don't use --settings settings.json in case its on the same machine
{ "private": { "ws_uri": "ws://kurento-reachable-ip:8888/kurento" } }
- run
meteor --release 1.3.2.4 --settings settings.json
- connect to http://localhost:3000
##iOS
- in order to run on ios, please execute
meteor add-platform ios
- connect your ios device and run
meteor run ios-device
and open the project in xcode - don't convert to latest swift syntax!
- within "Build Settings" add/set:
- "Enable Bitcode" to
no
- "Runpath Search Paths" setting with value
@executable_path/Frameworks
- add this to Bridging-Header.h ``#import "cordova-plugin-iosrtc-Bridging-Header.h`
- "Objective-C Bridging Header" to
${PROJECT_NAME}/Plugins/cordova-plugin-iosrtc/cordova-plugin-iosrtc-Bridging-Header.h
(read more about the "Bridging Header" above). see: https://github.com/eface2face/cordova-plugin-iosrtc/blob/master/docs/Building.md - meteor run-device ios
- "Enable Bitcode" to
##Android
- in order to run on android, please execute
meteor add-platform android
- edit AndroidManifest.xml in .meteor/local/cordova-build/platforms/android and add:
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.RECORD_VIDEO" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- connect your android device and run
meteor run android-device
- you have to install ssl on your local meteor server since webrtc does not allow non ssl connection via crosswalk. check https://letsencrypt.org/
##Packages
-
signaling is done by [meteor streams] (http://arunoda.github.io/meteor-streams/) (inactive project!)
-
for webrtc on ios https://github.com/eface2face/cordova-plugin-iosrtc/
-
TODO: https://forums.meteor.com/t/webrtc-plugin-for-cordova-ios-for-meteor-1-3/20372 cordova-rtc/cordova-plugin-iosrtc#138 meteor/meteor#6847
##Changes
- 2015-05-09 added permissionsrequest for camera and microphone.
- 2015-05-04 update to meteor 1.3
- 2016-04-08 moved iceserver settings to settings.json
- 2016-04-08 Update to Meteor 1.3 with npm
- 2016-03-16 (offline - train Eggenfelden-Kufstein) - enable spinner