|Table of Contents
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
WebRTC stream and can play other participants streams
On the screenshot below the participant is connected, publishing a stream and playing stream from the other participant.
Two videos are played on the page
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:
The maximum allowed number of participants is defined by variable _participants in html file of the example (video-chat.html, line 17)
<script>var _participants = 2</script>
Here host is the address of the WCS server.
Analyzing the code
Work with code of video conference is described in Video Conference.