Share via


VoiceLiveModelFactory.IceServer Method

Definition

ICE server configuration for WebRTC connection negotiation.

public static Azure.AI.VoiceLive.IceServer IceServer(System.Collections.Generic.IEnumerable<Uri> uris = default, string username = default, string credential = default);
static member IceServer : seq<Uri> * string * string -> Azure.AI.VoiceLive.IceServer
Public Shared Function IceServer (Optional uris As IEnumerable(Of Uri) = Nothing, Optional username As String = Nothing, Optional credential As String = Nothing) As IceServer

Parameters

uris
IEnumerable<Uri>

List of ICE server URLs (e.g., TURN or STUN endpoints).

username
String

Optional username used for authentication with the ICE server.

credential
String

Optional credential (e.g., password or token) used for authentication.

Returns

A new IceServer instance for mocking.

Applies to