GithubHelp home page GithubHelp logo

webrtc-ios's Introduction

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 note 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 not ideal, 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 XCode iOS app only for device (not simulator):

  • project location: webrtc-ios/ios-example/AppRTCDemo.xcodeproj
  • Open the XCode project and set target for iPad / iPhone
  • Build and run
  • Should work without changes

To build the video and jingle libs yourself, which you can then copy back into the ios-example/libs directory:

  • Download a copy of the Google WebRTC build tools and code here
  • Copy the files in the webrtc_obj dir into this dir ...projdir.../trunk/talk/app/webrtc/objc
  • Build the AppRTCDemo target: wrios && gclient runhooks && ninja -C out_ios/Debug AppRTCDemo
  • Copy the resulting libs back into the Xcode project 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 trunk that you downloaded in step 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!

githalytics.com alpha

webrtc-ios's People

Contributors

jznadams avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.