你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CallMedia.PlayToAllAsync 方法

定义

重载

PlayToAllAsync(PlaySource, CancellationToken)

以异步向所有参与者播放。

PlayToAllAsync(PlayToAllOptions, CancellationToken)

向所有参与者异步播放音频。

PlayToAllAsync(PlaySource, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

以异步向所有参与者播放。

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

参数

playSource
PlaySource
cancellationToken
CancellationToken

返回

返回 PlayResult,可用于等待 Play 的相关事件。

适用于

PlayToAllAsync(PlayToAllOptions, CancellationToken)

Source:
CallMedia.cs
Source:
CallMedia.cs

向所有参与者异步播放音频。

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

参数

options
PlayToAllOptions

包含播放选项和配置的可选对象。

cancellationToken
CancellationToken

用于取消请求的可选 CancellationToken。

返回

返回 PlayResult,可用于等待 Play 的相关事件。

适用于