Compartilhar via


CallMedia.PlayToAllAsync Método

Definição

Sobrecargas

PlayToAllAsync(PlaySource, CancellationToken)

Jogue para todos os participantes assíncronos.

PlayToAllAsync(PlayToAllOptions, CancellationToken)

Reproduzir áudio para todos os participantes assíncronos.

PlayToAllAsync(PlaySource, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Jogue para todos os participantes assíncronos.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>> PlayToAllAsync (Azure.Communication.CallAutomation.PlaySource playSource, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayToAllAsync : Azure.Communication.CallAutomation.PlaySource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>>
override this.PlayToAllAsync : Azure.Communication.CallAutomation.PlaySource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.PlayResult>>
Public Overridable Function PlayToAllAsync (playSource As PlaySource, 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

PlayToAllAsync(PlayToAllOptions, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Reproduzir áudio para todos os participantes assíncronos.

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

Parâmetros

options
PlayToAllOptions

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 PlayResult, que pode ser usado para aguardar os eventos relacionados do Play.

Aplica-se a