You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/call-readiness/call-readiness-tutorial-part-1-browser-support.md
In this tutorial, we'll be using Azure Communication Services with the [UI Library](https://aka.ms/acsstorybook) to create an experience that gets users ready to join a call. The UI Library provides a set of rich components and UI controls that can be used to produce a Call Readiness experience, as well as a rich set of APIs to understand the user state.
20
+
In this tutorial, we are using Azure Communication Services with the [UI Library](https://aka.ms/acsstorybook) to create an experience that gets users ready to join a call. The UI Library provides a set of rich components and UI controls that can be used to produce a Call Readiness experience, and a rich set of APIs to understand the user state.
21
21
22
22
## Prerequisites
23
23
@@ -30,13 +30,13 @@ Access the full code for this tutorial on [GitHub](https://github.com/Azure-Samp
30
30
## Checking for Browser Support
31
31
32
32
To ensure the user gets the best experience, we want to first make sure they're on a [supported browser](../../concepts/voice-video-calling/calling-sdk-features.md#javascript-calling-sdk-support-by-os-and-browser).
33
-
In this section, we'll create a page that displays "Preparing your session" whilst we perform a quick support check in the background on the user's browser.
33
+
In this section, we create a page that displays "Preparing your session" whilst we perform a quick support check in the background on the user's browser.
34
34
35
35

36
36
37
37
### Preparing Your Session Page
38
38
39
-
Create a new file called `PreparingYourSession.tsx` where we'll create a spinner to show to the user while we perform asynchronous checks in the background:
39
+
Create a new file called `PreparingYourSession.tsx` where we create a spinner to show to the user while we perform asynchronous checks in the background:
We can then hook up this Preparing your session screen into our App.
88
-
In the `App.tsx` and a variable `testState` to track the state of the app and while `testState` is in `runningEnvironmentChecks` state we'll show the Preparing Your Session Screen.
88
+
In the `App.tsx` and a variable `testState` to track the state of the app and while `testState` is in `runningEnvironmentChecks` state we show the Preparing Your Session Screen.
89
89
90
90
First, add the following imports to our `App.tsx` file that we created in the overview:
{/* After the device setup is complete, take the user to the call. For this sample we will just show a test complete page. */}
115
+
{/* After the device setup is complete, take the user to the call. For this sample we show a test complete page. */}
116
116
{testState === 'finished' && <TestComplete />}
117
117
</CallClientProvider>
118
118
</FluentThemeProvider>
119
119
);
120
120
}
121
121
```
122
122
123
-
### Performing a Environment information check
123
+
### Performing an Environment information check
124
124
125
-
First create a utility file call `environmentSupportUtils.ts`. Inside this call, we'll add a method `checkEnvironmentSupport`. This method will use the [Calling Stateful Client](https://azure.github.io/communication-ui-library/?path=/docs/statefulclient-overview--page) to perform a request for the environment information that the Calling Stateful Client is running on.
125
+
First create a utility file call `environmentSupportUtils.ts`. Inside this call, we add a method `checkEnvironmentSupport`. This method uses the [Calling Stateful Client](https://azure.github.io/communication-ui-library/?path=/docs/statefulclient-overview--page) to perform a request for the environment information that the Calling Stateful Client is running on.
126
126
127
127
`src/environmentSupportUtils.ts`
128
128
@@ -147,14 +147,14 @@ The data that returns from this call is the following:
147
147
148
148
### Informing the user they are on an unsupported browser
149
149
150
-
Next, we will need to use this information provided from the Calling SDK to inform the user of the state of their environment if there is a issue. The UI library provides three different components to serve this purpose depending on what the issue is.
150
+
Next, we need to use this information provided from the Calling SDK to inform the user of the state of their environment if there's an issue. The UI library provides three different components to serve this purpose depending on what the issue is.
151
151
152
152
-`UnsupportedOperatingSystem`
153
153
-`UnsupportedBrowser`
154
154
-`UnsupportedBrowserVersion`
155
155
156
-
To do this, we'll host the UI Library's components inside a [FluentUI Modal](https://developer.microsoft.com/fluentui#/controls/web/modal):
157
-
Create a new file called `UnsupportedEnvironmentPrompts.tsx` where we'll create the different prompts:
156
+
We start by hosting the UI Library's components inside a [FluentUI Modal](https://developer.microsoft.com/fluentui#/controls/web/modal):
157
+
Create a new file called `UnsupportedEnvironmentPrompts.tsx` where we create the different prompts:
We can then add the `EnvironmentChecksComponent` to the `App.tsx`. The App will then move the user to the _Device Checks_ stage once the test is successful using the `onTestsSuccessful` callback:
282
+
We can then add the `EnvironmentChecksComponent` to the `App.tsx`. The App then move the user to the _Device Checks_ stage once the test is successful using the `onTestsSuccessful` callback:
283
283
284
284
Let's now import the new component into our app in `App.tsx`
0 commit comments