Overview
A stream published on the WCS server can be played via RTSP in a third-party player. In this case, WCS itself serves as an RTSP-source.
RTSP-codecs
- Video: H.264, VP8
- Audio: AAC, G.711, Speex
Operation flowchart
- The browser establishes a connection to the server via Websocket
- The browser captures the camera and the microphone and sends the WebRTC stream to the server
- VLC Player establishes a connection to the server via RTSP
- VLC Player receives the stream from the server and plays it
Quick manual on testing
Publishing a video stream on the server and playing it via RTSP in a software player
1. For the test we use:
- the demo server at demo.flashphoner.com;
- the Two Way Streaming web application to publish the stream;
- VLC Player to play the stream.
2. Open the Two Way Streaming application. Click Connect, then Publish. Copy the identifier of the stream:
3. Run VLC, select the "Media - open URL" menu. Enter the URL of the WCS server and enter the identifier of the stream, in this exampe:
rtsp://demo.flashphoner.com/fc6a:
4. Click the "Play" button. The player starts playing the stream:
Call flow
Below is the call flow when playing a stream via RTSP in a software player.
- The software player establishes a connection to the WCS server via RTSP.
- The software player receives the media stream from WCS.