VoiceLiveSession.ConnectAvatarAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Connects and provides the client's SDP (Session Description Protocol) for avatar-related media negotiation.
public virtual System.Threading.Tasks.Task ConnectAvatarAsync(string clientSdp, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectAvatarAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ConnectAvatarAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ConnectAvatarAsync (clientSdp As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- clientSdp
- String
The client's SDP offer.
- cancellationToken
- CancellationToken
An optional cancellation token.
Returns
A task that represents the asynchronous operation.
Exceptions
Thrown when clientSdp is null.
Thrown when clientSdp is empty.