Compartilhar via


CallMedia.PlayAsync Método

Definição

Sobrecargas

PlayAsync(PlayOptions, CancellationToken)

Reproduz áudio para os participantes especificados assíncronos.

PlayAsync(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken)

Reproduz áudio para os participantes especificados assíncronos.

PlayAsync(PlayOptions, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Reproduz áudio para os participantes especificados assíncronos.

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

Parâmetros

options
PlayOptions

Um objeto opcional que contém opções e configurações de reprodução.

cancellationToken
CancellationToken

Um CancellationToken opcional para cancelar a solicitação.

Retornos

Retorna um PlayResult objeto , que pode ser usado para aguardar os eventos relacionados do Play.

Aplica-se a

PlayAsync(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Reproduz áudio para os participantes especificados assíncronos.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>> PlayAsync (Azure.Communication.CallAutomation.PlaySource playSource, System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> playTo, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayAsync : Azure.Communication.CallAutomation.PlaySource * seq<Azure.Communication.CommunicationIdentifier> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>>
override this.PlayAsync : Azure.Communication.CallAutomation.PlaySource * seq<Azure.Communication.CommunicationIdentifier> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>>
Public Overridable Function PlayAsync (playSource As PlaySource, playTo As IEnumerable(Of CommunicationIdentifier), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PlayResult))

Parâmetros

playSource
PlaySource
cancellationToken
CancellationToken

Retornos

Retorna PlayResult, que pode ser usado para aguardar os eventos relacionados do Play.

Aplica-se a