This demo shows how to use ZegoCloud and Banuba SDK to make a video call.
- Create a ZegoCloud account and obtain an AppID and server address.
- Generate a token for your user in ZegoCloud Admin Console.
- Install the latest version of Google Chrome browser.
- Enable camera and microphone permissions in Google Chrome.
- Clone this repository.
- Open
index.htmlin Google Chrome. - Replace
YOUR_APPID,YOUR_SERVER_ADDRESS,YOUR_TOKEN,YOUR_USER_ID,YOUR_USER_NAME,YOUR_ROOM_IDandYOUR_BANUBA_TOKENwith your actual values inzego-token.jsandtoken.jsfiles. - Run the demo by clicking on the "Run" button in the browser.
index.html: The HTML file that displays the video call.script.js: The JavaScript file that handles the video call logic.style.css: The CSS file that styles the HTML elements.token.js: The JavaScript file that contains your Banuba SDK token.zega-token.js: The JavaScript file that contains your ZegoCloud AppID, server address, token, user ID, user name, and room ID.
- The demo uses the Banuba SDK to create a player instance and loads the SDK additional files from CDN.
- The demo uses the ZegoCloud SDK to create a ZegoExpressEngine instance and logs in to a room.
- The demo creates a local stream using the Banuba SDK and publishes it to ZegoCloud.
- The demo starts playing a remote stream from ZegoCloud.
- The demo displays the local and remote streams in the HTML elements.