...
where sample.mp4 - is the name of the file that should be located in the "media" directory folder (by default, /usr/local/FlashphonerWebCallServer/media/, or, starting from v. build 5.2.687, the directory folder specified using property media_dir).
If a file with such a name does not exist, the server returns the StreamStatusEvent FAILED message, where the "info" field has the reason: "File not found".
...
- The browser connects to the server via Websocket WebSocket and sends the publish command.
- The browser captures the microphone and the camera and sends the WebRTC stream as H.264 + AAC to the server, enabling recording with the parameter record: true.
- The WCS server records the stream to a file.
- The browser stops publishing.
- The second browser establishes a connection via WebsocketWebSocket, creates a stream, specifies the file name, and sends the play command.
- The second browser receives the WebRTC stream and plays this stream on the page.
...