page_type | languages | products | |||
---|---|---|---|---|---|
sample |
|
|
This code sample walks through the process of integration Azure Communication Services voice calling into your JavaScript application.
This quickstart sample includes the code that is explained as part of this document. See that document for additional details on how this sample works.
- An Azure account with an active subscription. Create an account for free.
- You need to have Node.js 18. You can use the msi installer to install it.
- An active Communication Services resource. Create a Communication Services resource.
- A User Access Token to instantiate the call client. Learn how to create and manage user access tokens.
- Run
npm i
on the directory of the project to install dependencies - Use the webpack serve command to build and run the app on a local server:
npx webpack serve --config webpack.config.js
- Once the local server starts up, open your browser and navigate to http://localhost:8080/. You'll see the calling application:
To make an 1:1 outgoing video call, first provide user access token to initiate the call agent, then provide a ACS user ID in the text field and clicking the Start Call button. When the callee answers the call, call will be connected and youll hear each other