ServerCall.PlayAudio(Uri, String, Uri, String, CancellationToken) 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.
Play audio in the call.
public virtual Azure.Response<Azure.Communication.CallingServer.PlayAudioResult> PlayAudio (Uri audioFileUri, string audioFileId, Uri callbackUri, string operationContext = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PlayAudio : Uri * string * Uri * string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>
override this.PlayAudio : Uri * string * Uri * string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallingServer.PlayAudioResult>
Public Overridable Function PlayAudio (audioFileUri As Uri, audioFileId As String, callbackUri As Uri, Optional operationContext As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PlayAudioResult)
Parameters
- audioFileUri
- Uri
The uri of the audio file.
- audioFileId
- String
Tne id for the media in the AudioFileUri, using which we cache the media resource.
- callbackUri
- Uri
The callback Uri to receive PlayAudio status notifications.
- operationContext
- String
The operation context.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET