page_type: sample
languages:
- javascript
- chsarp
- html
products:
- azure
-
azure-communication-services
Project Name
ACS Calling Sample for WPF.
Notice
This is an experimental sample for Azure Communication Services. The capabilities shown are not officially supported by Azure Communication Services. This sample is meant for exploration. Please share your feedback with us if these are capabilities you want to see supported.
Features
This project framework provides the following features:
- Uses the ACS Calling Web SDK inside of a desktop application.
- This wpf sample uses WebView2 SDK.
Getting Started
Prerequisites
Installation
- git clone https://github.com/Azure-Samples/communication-services-web-calling-wpf-sample
- Get a connection string by provisioning an Azure Communication Services resource from the Azure portal. Use the connection string as value for key
connectionString
in /project/webapp/config.json
cd project/webapp
npm install
npm run build
npm run start
and wait for server to start up, it will run in localhost:5000
- In the
/project
directory from the cloned reposity, open WpfApp.sln in Visual Studio
- From Visual Studio solution explorer, right click on the project solution (WpfApp.sln) and click on "Manage Nuget packages..."
- From NuGet dialog, browse for Microsoft.Web.WebView2 (Make sure to check the "Include prerelease" box) and install version 0.9.579-prerelease
- Build and run the WPF app from Visual Studio and the WPF app should come up. This WPF app has two web views. In each web view you should see an ACS Calling web application
- From either of the ACS Calling web applications:
- Copy and paste the User Identity into the other webapp's "Destination User Identity" input box
- Click on the "Place call" button for the caller to start the call.
- The call will start ringing. Click on the "Accept" button from the callee side.
- The call will connect and both ACS Calling web application will be able to speak to each other
Troubleshooting
- If the WpfApp shows up blank, reinstall the Microsoft.Web.WebView2 SDK version 0.9.579-prerelease from the Nuget Package Manager dialogue (Right click on WpfApp solutions, then click "Manage NuGet Packages for Solution...").
- Please post any issues, and the ACS Calling team will reply and look into any issues as soon as possible: https://github.com/Azure-Samples/communication-services-web-calling-wpf-sample/issues
Resources