First, be sure to install the prerequisite software.
The currently supported platforms are Windows, Mac OS X, and Linux.
Create a working directory, enter it, and run:
$ gclient config http://webrtc.googlecode.com/svn/trunk
If you're a committer, substitute https for http. On Windows, use gclient.bat instead (or prefix the commands by invoking python).
On Linux, ensure your dependencies are up to date, as described on the prerequisites page.
The sync will generate native build files for your environment using gyp (Linux: make, OS X: XCode, Windows: Visual Studio). This generation can also be forced manually:
On Windows, gyp will use the latest Visual Studio on your system by default. In order to specify a particular Visual Studio version, there are a few options. You can set an environment variable
where <version> is, for example, 2008.
You should now be able to build the sample programs peerconnection_client (Windows and Linux only) and peerconnection_server (Windows, Linux, Mac).
The sample application creates a simple video chat client and server, using the WebRTC Native APIs.
On Linux: (Linux now uses ninja by default)
Use Visual Studio to open and build the trunk/all.sln solution file. This will build both
On Mac: (Mac now uses ninja by default)
Note that currently we don't have the peerconnection_client for Mac.
It is also possible to use regular Make to build. To do this, set the environment variable
The resulting binaries appear in
Once built, start the
You can also use the test HTML page (trunk/talk/examples/peerconnection/server/server_test.html) to connect to the server and enable loopback when you've only got one instance of
When the server is running, you'll see a message indicating that it is running:
The UI of the application consists of these three parts:
To end a chat session and go back to selecting a peer, press Esc. To disconnect from the server and go back to the initial UI, press Esc again.
1. Check out as usual:
gclient config https://webrtc.googlecode.com/svn/trunk
echo "target_os = ['android', 'unix']" >> .gclient
gclient sync --nohooks
2. Generate ninja makefiles:
3. Build and Install Demo app:
ninja -C out/Debug WebRTCDemo
adb install -r webrtc/video_engine/test/android/bin/WebRTCDemo-debug.apk
Find "WebRTC" on your Android device, then run it.
If you want to build and test with Libjingle on Android, you can refer these: