Skip to content

Commit 884e212

Browse files
Moving content to cte-calling-sdk
1 parent 731127f commit 884e212

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed
Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,7 @@ ms.author: charithg
99
> [!NOTE]
1010
> This API is provided as a preview for developers and might change based on feedback that we receive. Don't use this API in a production environment. To use this API, use the beta release of the Azure Communication Services Calling Web SDK (1.31.1-beta.1 or higher).
1111
12-
## Install the SDK
13-
14-
Use the `npm install` command to install the Azure Communication Services Common and Calling SDK for JavaScript:
15-
16-
```console
17-
npm install @azure/communication-common --save
18-
npm install @azure/communication-calling --save
19-
```
20-
21-
## Initialize required objects
22-
23-
A `CallClient` instance is required for most call operations. When you create a new `CallClient` instance, you can configure it with custom options like a `Logger` instance.
24-
25-
With the `CallClient` instance, you can create a `TeamsCallAgent` instance by calling the `createTeamsCallAgent`. This method asynchronously returns a `TeamsCallAgent` instance object.
26-
27-
The `createTeamsCallAgent` method uses `CommunicationTokenCredential` as an argument. It accepts a [user access token](../../../../quickstarts/identity/access-tokens.md).
28-
29-
You can use the `getDeviceManager` method on the `CallClient` instance to access `deviceManager`.
30-
31-
```js
32-
const { CallClient } = require('@azure/communication-calling');
33-
const { AzureCommunicationTokenCredential} = require('@azure/communication-common');
34-
const { AzureLogger, setLogLevel } = require("@azure/logger");
35-
36-
// Set the logger's log level
37-
setLogLevel('verbose');
38-
39-
// Redirect log output to console, file, buffer, REST API, or whatever location you want
40-
AzureLogger.log = (...args) => {
41-
console.log(...args); // Redirect log output to console
42-
};
43-
44-
const userToken = '<USER_TOKEN>';
45-
const callClient = new CallClient(options);
46-
const tokenCredential = new AzureCommunicationTokenCredential(userToken);
47-
const callAgent = await callClient.createTeamsCallAgent(tokenCredential, {displayName: 'optional Azure Communication Services user name'});
48-
const deviceManager = await callClient.getDeviceManager();
49-
await deviceManager.askDevicePermission({ audio: true, video: true });
50-
```
12+
[!INCLUDE [Install SDK](../install-sdk/install-sdk-web.md)]
5113

5214
## Place a call on behalf of a Microsoft Teams user
5315

articles/communication-services/how-tos/calling-sdk/shared-line-appearance.md renamed to articles/communication-services/how-tos/cte-calling-sdk/shared-line-appearance.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,4 @@ The following table shows support for shared line appearance feature in individu
3535

3636
## Next steps
3737

38-
- [Learn how to manage calls](./manage-calls.md)
39-
- [Learn how to manage video](./manage-video.md)
40-
- [Learn how to record calls](./record-calls.md)
41-
- [Learn how to transcribe calls](./call-transcription.md)
38+
- [Learn how to manage calls](./manage-calls.md)

0 commit comments

Comments
 (0)