Move around in a 2D plane to experience spatial audio from other users, the SDK selectively subscribes to other remote users based on distance.
If you enter the ring encircling the square, you subscribe to the user's audio.
- Enter your Agora App ID (and token) in
./src/main.ts
. - Install the project dependencies by executing
npm install
- Execute
npm run dev
to start the web server - Navigate to
localhost:3000
in your browser and click the start button - You can open the project in a new tab to simulate multiple users.