Delen via


CallMedia.PlayToAll Method

Definition

Overloads

PlayToAll(PlaySource, CancellationToken)

Play to all participants.

PlayToAll(PlayToAllOptions, CancellationToken)

Play audio to all participants.

PlayToAll(IEnumerable<PlaySource>, CancellationToken)

Play to all participants.

PlayToAll(PlaySource, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Play to all participants.

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

Parameters

playSource
PlaySource
cancellationToken
CancellationToken

Returns

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

Applies to

PlayToAll(PlayToAllOptions, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

Play audio to all participants.

public virtual Azure.Response<Azure.Communication.CallAutomation.PlayResult> PlayToAll (Azure.Communication.CallAutomation.PlayToAllOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayToAll : Azure.Communication.CallAutomation.PlayToAllOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
override this.PlayToAll : Azure.Communication.CallAutomation.PlayToAllOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
Public Overridable Function PlayToAll (options As PlayToAllOptions, Optional cancellationToken As CancellationToken = Nothing) As 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

PlayToAll(IEnumerable<PlaySource>, CancellationToken)

Source:
CallMedia.cs

Play to all participants.

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