WebRTC PeerConnection Manual Test Help Page

The test page is intended for testing WebRTC calls. This is how you set up a normal call:

  1. Open this page in two tabs.
  2. Start the peerconnection server. Click on the question mark next to the 'server' field for instruction on how to do that. The easiest thing is to start it on localhost, but you can start it on any machine you like and connect to hostname:8888.
  3. Click the Connect button in both tabs.
  4. Click the Call:Negotiate button in one of the tabs. You should see a bunch of printouts when this happens. Note that no streams are sent to begin with (although you could run steps 5-6 before this step to get streams even in the initial call).
  5. Grant media access using the checkboxes and Request button.
  6. Add the local stream by clicking the "Add" button, in both tabs.
  7. Now you must re-negotiate the call by clicking on Negotiate again.
  8. You should now have a call up and both sides should be receiving media data (depending on what access you granted on the respective pages).
  9. You can now choose to stop, re-request, re-send or disable streams in any way you like, or hang up and re-start the call. You don't need to disconnect: that's done automatically when you close the page. Hanging up is NOT done automatically though.

To create a data channel:

  1. Make sure Chrome is started with the --enable-data-channels flag.
  2. Follow the instructions above to connect two tabs to a peerconnection_server.
  3. Click the Data channel: Create button in one tab. Notice the status changes to "connecting".
  4. Click the Call:Negotiate button. You should see the status change to "open" in both tabs.
  5. Enter text in the textbox next to the Send data button and then click Send data. Notice the text is received in the remote tab in the Received on data channel text box. Data can be sent in both direct.
  6. To close the channel press the Close button followed by Negotiate. Notice the status change to "closed"

Detailed descriptions: