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
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Initialize the SDK using the secure authentication method that uses a token in the application. For the purpose of this application, use a [client access token](https://docs.dolby.io/communications-apis/docs/overview-developer-tools#client-access-token) generated from the Dolby.io dashboard. Use the following code to initialize the SDK using the [DolbyIOSDK.InitAsync](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.DolbyIOSDK.html#DolbyIO_Comms_DolbyIOSDK_InitAsync_System_String_DolbyIO_Comms_RefreshTokenCallBack_) method:
40
+
Initialize the SDK using the secure authentication method that uses a token in the application. For the purpose of this application, use a [client access token](https://docs.dolby.io/communications-apis/docs/overview-developer-tools#client-access-token) generated from the Dolby.io dashboard. Use the following code to initialize the SDK using the [DolbyIOSDK.InitAsync](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.DolbyIOSDK.html#DolbyIO_Comms_DolbyIOSDK_InitAsync_System_String_DolbyIO_Comms_RefreshTokenCallBack_) method:
41
41
42
42
```cs
43
43
usingDolbyIO.Comms;
@@ -58,7 +58,7 @@ catch (DolbyIOException e)
58
58
}
59
59
```
60
60
61
-
**NOTE:** The SDK is fully asynchronous, and all methods can throw the [DolbyIOException](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.DolbyIOException.html).
61
+
**NOTE:** The SDK is fully asynchronous, and all methods can throw the [DolbyIOException](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.DolbyIOException.html).
62
62
63
63
#### 2. Register event handlers
64
64
@@ -82,7 +82,7 @@ _sdk.Conference.ParticipantAdded = new ParticipantAddedEventHandler
82
82
83
83
A session is a connection between the client application and the Dolby.io backend. When opening a session, you should provide a name. Commonly, this is the name of the participant who established the session. The session can remain active for the whole lifecycle of your application.
84
84
85
-
To open a new session, use the [Session.OpenAsync](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Services.SessionService.html#DolbyIO_Comms_Services_SessionService_OpenAsync_DolbyIO_Comms_UserInfo_) method as in the following example:
85
+
To open a new session, use the [Session.OpenAsync](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Services.SessionService.html#DolbyIO_Comms_Services_SessionService_OpenAsync_DolbyIO_Comms_UserInfo_) method as in the following example:
86
86
87
87
```cs
88
88
try
@@ -102,7 +102,7 @@ catch (DolbyIOException e)
102
102
103
103
A conference is a multi-person call where participants exchange audio with one another. To distinguish between multiple conferences, you should assign a conference alias or name. When multiple participants join a conference of the same name using a token of the same Dolby.io application, they will be able to meet in a call.
104
104
105
-
To create and join a conference, use the [Conference.CreateAsync](hhttps://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_CreateAsync_DolbyIO_Comms_ConferenceOptions_) and [Conference.JoinAsync](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_JoinAsync_DolbyIO_Comms_Conference_DolbyIO_Comms_JoinOptions_) methods as in the following example:
105
+
To create and join a conference, use the [Conference.CreateAsync](hhttps://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_CreateAsync_DolbyIO_Comms_ConferenceOptions_) and [Conference.JoinAsync](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_JoinAsync_DolbyIO_Comms_Conference_DolbyIO_Comms_JoinOptions_) methods as in the following example:
106
106
107
107
```cs
108
108
try
@@ -121,11 +121,11 @@ catch (DolbyIOException e)
121
121
}
122
122
```
123
123
124
-
If the conference already exists, the SDK returns [Conference](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Conference).
124
+
If the conference already exists, the SDK returns [Conference](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Conference).
125
125
126
126
#### 5. Leave the conference
127
127
128
-
To leave the conference, use the [Conference.LeaveAsync](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_LeaveAsync) method, as in the following example:
128
+
To leave the conference, use the [Conference.LeaveAsync](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Services.ConferenceService.html#DolbyIO_Comms_Services_ConferenceService_LeaveAsync) method, as in the following example:
129
129
130
130
```cs
131
131
try
@@ -140,7 +140,7 @@ catch (DolbyIOException e)
140
140
141
141
#### 6. Close the session and dispose of the SDK
142
142
143
-
After leaving the conference, close the session and dispose the SDK using the [Session.CloseAsync](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.Services.SessionService.html#DolbyIO_Comms_Services_SessionService_CloseAsync) and [DolbyIOSDK.Dispose](https://api-references.dolby.io/comms-sdk-dotnet/documentation/api/DolbyIO.Comms.DolbyIOSDK.html#DolbyIO_Comms_DolbyIOSDK_Dispose) methods.
143
+
After leaving the conference, close the session and dispose the SDK using the [Session.CloseAsync](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.Services.SessionService.html#DolbyIO_Comms_Services_SessionService_CloseAsync) and [DolbyIOSDK.Dispose](https://api-references.dolby.io/comms-sdk-dotnet/api/DolbyIO.Comms.DolbyIOSDK.html#DolbyIO_Comms_DolbyIOSDK_Dispose) methods.
The Dolby.io Communications .NET SDK allows creating high-quality applications for conferencing, streaming, and collaborating. With the .NET SDK you can easily integrate the HD Dolby Voice experience, including spatial audio and shared scenes, into game engines and virtual spaces.
4
+
5
+
The SDK depends on the C++ SDK for core functions and supports the same functionalities for client applications as the C++ SDK.
0 commit comments