Versions Compared

Key

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

Example of video chat

This example can be used for video chat between two participants on Web Call Server.
Each participant can publish a stream of one of the following types

...

Link to the "room" is displayed in the Invite field.

Code of the example

The path to the source code of the example on WCS server is:

...

In the example of video chat, the number of allowed participants is two, and in the example of Video Conference - three. Example for four or more participants can be created.
The maximum allowed number of participants is defined by variable _participants in html file of the example (video-chat.html, line 17)

Code Block
languagejs
themeRDark
<script>var _participants = 2</script>

...

Here host is the address of the WCS server.

Work with code of video conference

Work with code of video conference is described in Video Conference.