Share via


CallMedia.PlayToAllAsync Method

Definition

Overloads

PlayToAllAsync(PlaySource, CancellationToken)

Play to all participants async.

PlayToAllAsync(PlayToAllOptions, CancellationToken)

Play audio to all participants async.

PlayToAllAsync(IEnumerable<PlaySource>, CancellationToken)

Play to all participants async.

PlayToAllAsync(PlaySource, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Play to all participants async.

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))

Parameters

playSource
PlaySource
cancellationToken
CancellationToken

Returns

Returns PlayResult, which can be used to wait for Play's related events.

Applies to

PlayToAllAsync(PlayToAllOptions, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Play audio to all participants async.

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))

Parameters

options
PlayToAllOptions

An optional object containing play options and configurations.

cancellationToken
CancellationToken

An optional CancellationToken to cancel the request.

Returns

Returns PlayResult, which can be used to wait for Play's related events.

Applies to

PlayToAllAsync(IEnumerable<PlaySource>, CancellationToken)

Source:
CallMedia.cs

Play to all participants async.

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

Parameters

playSources
IEnumerable<PlaySource>
cancellationToken
CancellationToken

Returns

Returns PlayResult, which can be used to wait for Play's related events.

Applies to