Skip to main content

Prerequisites

  • You have completed SDK integration
  • You have obtained a token for joining the channel from the server (generated by your own backend calling the server API)
  • The page runs over HTTPS or on localhost

Complete example

The following code shows a minimal runnable audio and video call flow: initialize → check the environment → listen for events → join the channel → subscribe to the mixed audio → subscribe to remote video → turn on the microphone → turn on the camera → leave the channel.

Next steps