- Notifications
You must be signed in to change notification settings - Fork0
Onboarding sample for web calling capabilities for Azure Communication Services
License
NotificationsYou must be signed in to change notification settings
Salgadito/communication-services-web-calling-tutorial
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
| page_type | languages | products | ||||
|---|---|---|---|---|---|---|
sample |
|
|
- An Azure account with an active subscription.Create an account for free.
- A deployed Communication Services resource.Create a Communication Services resource.
- NPM
- You need to haveNode.js 18. You can use the msi installer to install it.
- ./Project/src: client side source code
- ./Project/webpack.config.js: Project bundler. Has a simple local server for user token provisioning.
- ./Project/serverConfig.json: configuration file for specifying the connection strings.
- Open a terminal or command prompt, and
cdinto a folder where you would like to clone this repo. The run:git clone https://github.com/Azure-Samples/communication-services-web-calling-tutorialcd communication-services-web-calling-tutorial/Project
- Get your Azure Communication Services resource connection string from the Azure portal, and put it as the value for
connectionStringin serverConfig.json file. - From the terminal/command prompt, Run:
npm installnpm run build-localnpm run start-local
- Open localhost:5000 in a browser. (Supported browsers are Chrome, Edge, and Safari)
- This app has been setup to be easily deployed to Azure App Service
- webpack.config.js.
- allowedHosts: Specifies that it allows this app to be hosted in <appname>.azurewebsites.org which is how Azure App Service hosts web apps.
- contentBase: The folder where public assets can be served from. For example, a request to your app like GET https://<appname>.azurewebsites.org/file.txt, will serve the file.txt that resides in the contentBase folder. This app has this field set to the './public' folder.
- package.json. Azure app service will run these scripts when deploying.
- "build" script. Used by Azure App Service when deploying to build the application.
- "start" script. Used by Azure App Service when deploying. This will start server in port 8080. Port 8080 is specified in webpack.config.js. Do not change this port when deploying to Azrue App Service becaue this is the port that Azure App Service uses.Tutorial on how to deploy a NodeJs app to Azure App ServiceNote: If you want to deploy this application with a different deployment environment other than Azure App Service, you may need to change these configurations according to your deployment environment specifications.
- webpack.config.js.
- Make sure your ACS connecting string is specified in serverConfig.json or you wont be able to provision ACS User Access tokens for the app.
- If any errors occur, check the browser console logs for errors. Also, check the webpack server side console logs for errors.
- Web Push Notifications - In order to test web push notifications, we must run the app in HTTPS, hence you will need to deploy this app to a secured server that will serve the application with HTTPS. You will need to specify value in ./clientConfig.json for the key "oneSignalAppId". And you will need to specify value for "functionAppOneSignalTokenRegistrationUrl" in ./serverConfig.json. To learn how to set up a web push notification architecture for the ACS Web Calling SDK, please follow ourACS Web Calling SDK - Web push notifications tutorial:
- Documentation on how to use the ACS Calling SDK for Javascript can be found onhttps://docs.microsoft.com/en-gb/azure/communication-services/quickstarts/voice-video-calling/calling-client-samples?pivots=platform-web
- ACS Calling SDK for Javascript API reference documentation can be found onhttps://docs.microsoft.com/en-us/javascript/api/azure-communication-services/@azure/communication-calling/?view=azure-communication-services-js
- Documentation on Communications Calling SDK with Teams identity can be found onhttps://learn.microsoft.com/en-us/azure/communication-services/concepts/teams-interop
- Documentation on how to setup and get access tokens for teams User can be found onhttps://learn.microsoft.com/en-us/azure/communication-services/quickstarts/manage-teams-identity?pivots=programming-language-javascript
About
Onboarding sample for web calling capabilities for Azure Communication Services
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript95.2%
- CSS4.6%
- HTML0.2%