This web application shows a WebRtcEndpoint connected to itself (loopback). Take a look to the Media Pipeline.
To run this demo follow these steps: