CallMedia.Play Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Play(IEnumerable<PlaySource>, IEnumerable<CommunicationIdentifier>, CancellationToken) |
Plays a file. |
Play(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken) |
Plays a file. |
Play(PlayOptions, CancellationToken) |
Plays audio to specified participant(s). |
Play(IEnumerable<PlaySource>, IEnumerable<CommunicationIdentifier>, CancellationToken)
- Source:
- CallMedia.cs
Plays a file.
public virtual Azure.Response<Azure.Communication.CallAutomation.PlayResult> Play (System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.PlaySource> playSources, System.Collections.Generic.IEnumerable<Azure.Communication.CommunicationIdentifier> playTo, System.Threading.CancellationToken cancellationToken = default);
abstract member Play : seq<Azure.Communication.CallAutomation.PlaySource> * seq<Azure.Communication.CommunicationIdentifier> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
override this.Play : seq<Azure.Communication.CallAutomation.PlaySource> * seq<Azure.Communication.CommunicationIdentifier> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.PlayResult>
Public Overridable Function Play (playSources As IEnumerable(Of PlaySource), playTo As IEnumerable(Of CommunicationIdentifier), Optional cancellationToken As CancellationToken = Nothing) As Response(Of PlayResult)
Parameters
- playSources
- IEnumerable<PlaySource>
- playTo
- IEnumerable<CommunicationIdentifier>
- cancellationToken
- CancellationToken
Returns
Returns PlayResult, which can be used to wait for Play's related events.
Applies to
Play(PlaySource, IEnumerable<CommunicationIdentifier>, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Plays a file.
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)
Parameters
- playSource
- PlaySource
- playTo
- IEnumerable<CommunicationIdentifier>
- cancellationToken
- CancellationToken
Returns
Returns PlayResult, which can be used to wait for Play's related events.
Applies to
Play(PlayOptions, CancellationToken)
- Source:
- CallMedia.cs
- Source:
- CallMedia.cs
Plays audio to specified participant(s).
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)
Parameters
- options
- PlayOptions
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.