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

CallMedia.PlayToAll 方法

定义

重载

PlayToAll(PlayToAllOptions, CancellationToken)

向所有参与者播放音频。

PlayToAll(PlaySource, CancellationToken)

向所有参与者播放。

PlayToAll(PlayToAllOptions, CancellationToken)

向所有参与者播放音频。

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)

参数

options
PlayToAllOptions

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

cancellationToken
CancellationToken

用于取消请求的可选 CancellationToken。

返回

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

适用于

PlayToAll(PlaySource, CancellationToken)

向所有参与者播放。

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)

参数

playSource
PlaySource
cancellationToken
CancellationToken

返回

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

适用于