Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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".

...

  1. The browser connects to the server via Websocket WebSocket and sends the publish command.
  2. 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.
  3. The WCS server records the stream to a file.
  4. The browser stops publishing.
  5. The second browser establishes a connection via WebsocketWebSocket, creates a stream, specifies the file name, and sends the play command.
  6. The second browser receives the WebRTC stream and plays this stream on the page.

...