webRTC iOS example app.
Forked from newOcean. Updated to the latest webrtc iOS example code from google. Not sure the trunk directory is needed.
To Run example:
- Build this code for a device (iPad or iPhone).
- Open a Google Chrome browser (not IE, Firefox or Safari - spent a day debugging why Firefox was not working - CHROME!!)
- Open this URL: https://apprtc.appspot.com
- Ensure the camera on your laptop has an image
- Make not of the room number in the URL after loading web page
- Run the iOS app and type in the room number
- Stand back .... Should here feedback audio between your laptop and iOS device.
- NOTE - the audio is the only channel implemented by Google, the video render portion on iOS is not implemented yet.
UPDATE 11/14/13:
- Video support added!
- Now video and audio are both full duplex
- Code is very ugly, needs to be cleaned up, to repeat, CODE IS A HACK and needs clean up
- Big thanks to [Bridger Maxwell] (http://www.bridgermaxwell.com) for the webRTC objC video code - totally could not be done without his help, THANK YOU!
- This thread on google groups was VERY, VERY helpful
- These libraries are the key to bringing video to life:
- ios-example/libs/libjingle.a
- ios-example/libs/libjingle_media.a
- ios-example/libs/libjingle_peerconnection_objc.a
- ios-example/libs/libvideo_render_module.a
TO build the libs yourself:
- Copy the webrtc_obj files into this dir ...projdir.../trunk/talk/app/webrtc/objc
- build the AppRTCDemo: wrios && gclient runhooks && ninja -C out_ios/Debug AppRTCDemo
- copy libs into Xcode build cp ...projdir.../trunk/out_ios/Debug/libvideo_render_module.a ...projdir.../ios_app/webrtc-ios/ios-example/libs
- I am not using the trunk dir provided in this repo. Using the google one instead.
My Test setup:
- MacBook Pro wih OSX 10.7
- Chrome browser connected to apprtc.appspot.com
- iPad 2 (iOS6) connected to Xcode 4.6.3 via debugger
- Occasionaly, I hit an issue with the TURN server not being reachable and need to re-run the app. Some networks this is worse, e.g. home network versus work.
Contributing:
- Fork it
- Create your feature branch (
git checkout -b my_new_feature
) - Commit your changes (
git commit -m 'Added some feature' -a
) - Push to the branch (
git push origin my_new_feature
) - Create a new Pull Request
- Please send in your changes!!
Again, this code needs a lot of cleanup, so please use at own risk. Enjoy!