AppRTC is Google’s original sample/demo for a peer-to-peer WebRTC implementation. In December 2021, Google decided to no longer support the hosted version of it and only offer it as a github repository.
In the past, we provided the AppRTC test script as a sample of using our service, but ever since the hosted version of it was removed from the internet, we had to remove it from our own samples.
If you are using it as your baseline, then the script below is a good starting point.
The script below creates random URL on AppRTC for the first probe joining the session, and then have the second probe joins the same random URL. You can use the script “as is” – just make sure the service URL points to your server.
Using the test script
In testRTC, create a new test script:
- Copy the code from the bottom of this article to your test script (or use the existing sample in your account)
- Decide the number of probes you want to use
- 2 Concurrent probes will be good starting point – keep it at an even number (you need pairs of probes for this)
- Session size must be 2 for the AppRTC application to work properly
- Replace the Service URL of the script with the URL where your AppRTC signaling server is located
Run the script. It does everything for you.
Test script code