Versions Compared

Key

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

This is a basic video conference example which uses SFU SDK. In this example client can join the conference and publish audio/video/screen sharing for other participants to see.

Analyzing the code

ContentsOn the screenshot below two participants are in the room, publishing streams in two encodings 720p and 360p

Image Added

The source code

To analyze the source code take the version which is available here

The example source code has a modular structure:

  • main.html - html page
  • main.js - main logicmain.css - styles
  • config.json - config file for the client
  • controls.js - code that handles client controls
  • chat.js - code that handles conference chat
  • display.js - code that is responsible for displaying local and remote media
  • util.js - utility file

Children Display
alltrue