henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | This directory contains an example iOS client for http://apprtc.appspot.com |
| 2 | |
| 3 | Example of building & using the app: |
| 4 | |
| 5 | cd <path/to/libjingle>/trunk/talk |
| 6 | - Open libjingle.xcproj. Select iPhone or iPad simulator and build everything. |
| 7 | Then switch to iOS device and build everything. This creates x86 and ARM |
| 8 | archives. |
| 9 | cd examples/ios |
| 10 | ./makeLibs.sh |
| 11 | - This will generate fat archives containing both targets and copy them to |
| 12 | ./libs. |
| 13 | - This step must be rerun every time you run gclient sync or build the API |
| 14 | libraries. |
| 15 | - Open AppRTCDemo.xcodeproj, select your device or simulator and run. |
| 16 | - If you have any problems deploying for the first time, check the project |
| 17 | properties to ensure that the Bundle Identifier matches your phone |
| 18 | provisioning profile. Or use the simulator as it doesn't require a profile. |
| 19 | |
| 20 | - In desktop chrome, navigate to http://apprtc.appspot.com and note the r=<NNN> |
| 21 | room number in the resulting URL. |
| 22 | |
| 23 | - Enter that number into the text field on the phone. |
| 24 | |
| 25 | - Alternatively, you can background the app and launch Safari. In Safari, open |
| 26 | the url apprtc://apprtc.appspot.com/?r=<NNN> where <NNN> is the room name. |
| 27 | Other options are to put the link in an email and send it to your self. |
| 28 | Clicking on it will launch AppRTCDemo and navigate to the room. |