Delen via


CallMedia.StopMediaStreamingAsync Method

Definition

Stops media streaming in the call.

public virtual System.Threading.Tasks.Task<Azure.Response> StopMediaStreamingAsync (Azure.Communication.CallAutomation.StopMediaStreamingOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StopMediaStreamingAsync : Azure.Communication.CallAutomation.StopMediaStreamingOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.StopMediaStreamingAsync : Azure.Communication.CallAutomation.StopMediaStreamingOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function StopMediaStreamingAsync (Optional options As StopMediaStreamingOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

options
StopMediaStreamingOptions

An optional object containing stop media streaming options.

cancellationToken
CancellationToken

An optional CancellationToken to cancel the request.

Returns

Returns an HTTP response with a 202 status code for success, or an HTTP failure error code in case of an error.

Applies to