Compartilhar via


CallMedia.Play Método

Definição

Sobrecargas

Play(PlayOptions, CancellationToken)

Reproduz áudio para participantes especificados.

Play(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken)

Reproduz um arquivo.

Play(PlayOptions, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Reproduz áudio para participantes especificados.

public virtual Azure.Response<Azure.Communication.CallAutomation.PlayResult> Play (Azure.Communication.CallAutomation.PlayOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member Play : Azure.Communication.CallAutomation.PlayOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
override this.Play : Azure.Communication.CallAutomation.PlayOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
Public Overridable Function Play (options As PlayOptions, Optional cancellationToken As CancellationToken = Nothing) As 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 PlayResult, que pode ser usado para aguardar os eventos relacionados do Play.

Aplica-se a

Play(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken)

Origem:
CallMedia.cs
Origem:
CallMedia.cs

Reproduz um arquivo.

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