# Tutorial: WebRTC in loopback with recording

This application shows a WebRtcEndpoint connected to itself (loopback) where the media sent to server is recorded and then played. Then, the recorded media (stored in the KMS file system) is played again. Thus, in the server-side code of this application we are using two media pipelines media pipelines (one for the loopback, and the other one the playback). To run this demo follow these steps:

1. Open this page with a browser compliant with WebRTC anc click on Start button.
2. Grant the access to the camera and microphone. After the SDP negotiation the loopback should start.
3. Click on Stop to finish the communication.
4. Click on Play to replay the recorded media.

Video and audio Video only Audio only

### Local stream

Start
Stop
Play

### Remote stream

Console