This article describes how to quickly run the sample source code and experience basic audio and video calling services.
Please ensure that the development environment meets the following technical requirements:
The AppID required by the SDK are missing in the sample code, please make sure a project has been created in ZEGOCLOUD Console and a valid AppID have been applied.
Open project with Visual Studio Code
The "AppID", "UserID" and "Token" required for SDK initialization are missing from the sample codes, and the /keycenter.js file needs to be modified. Please fill in them correctly, otherwise, the sample code cannot be run.
You can get the appID and a temporary token in ZEGOCLOUD Console.
Install dependencies and run
$ npm install
$ npm run start
We recommend you run your project on a real device. If your app runs successfully, you should hear the sound and see the video captured locally from your device.
To test out the real-time audio and video features, visit the ZEGO Express Web Demo, and enter the same AppID, Server and RoomID to join the same room. If it runs successfully, you should be able to view the video from both the local side and the remote side, and hear the sound from both sides as well.
In audio-only scenarios, no video will be captured and displayed.
