Compartilhar via


CallConnection.PlayAudioAsync Método

Definição

Sobrecargas

PlayAudioAsync(PlayAudioOptions, CancellationToken)

Reproduzir áudio na chamada.

PlayAudioAsync(Uri, Nullable<Boolean>, String, Uri, String, CancellationToken)

Reproduzir áudio na chamada.

PlayAudioAsync(PlayAudioOptions, CancellationToken)

Origem:
CallConnection.cs

Reproduzir áudio na chamada.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>> PlayAudioAsync (Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayAudioAsync : Azure.Communication.CallingServer.PlayAudioOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>>
override this.PlayAudioAsync : Azure.Communication.CallingServer.PlayAudioOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>>
Public Overridable Function PlayAudioAsync (options As PlayAudioOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PlayAudioResult))

Parâmetros

options
PlayAudioOptions

Reproduzir solicitação de áudio.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

options é nulo.

Aplica-se a

PlayAudioAsync(Uri, Nullable<Boolean>, String, Uri, String, CancellationToken)

Origem:
CallConnection.cs

Reproduzir áudio na chamada.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>> PlayAudioAsync (Uri audioFileUri, bool? loop, string audioFileId, Uri callbackUri, string operationContext = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayAudioAsync : Uri * Nullable<bool> * string * Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>>
override this.PlayAudioAsync : Uri * Nullable<bool> * string * Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>>
Public Overridable Function PlayAudioAsync (audioFileUri As Uri, loop As Nullable(Of Boolean), audioFileId As String, callbackUri As Uri, Optional operationContext As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PlayAudioResult))

Parâmetros

audioFileUri
Uri

O URI do arquivo de áudio.

loop
Nullable<Boolean>

O sinalizador para indicar se o arquivo de áudio precisa ser reproduzido em um loop ou não.

audioFileId
String

ID do Tne para a mídia no AudioFileUri, usando o qual armazenamos em cache o recurso de mídia.

callbackUri
Uri

O URI de retorno de chamada para receber notificações do PlayAudio status.

operationContext
String

O contexto da operação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a