Edit

Share via


MediaProvider Class

Definition

Represents the class, which facilitates SDP offer/answer negotiation for the Call.

public ref class MediaProvider abstract
public abstract class MediaProvider
type MediaProvider = class
Public MustInherit Class MediaProvider
Inheritance
MediaProvider
Derived

Remarks

MediaProvider is the link between the signaling and Media APIs. It facilitates offer/answer negotiation on the signaling session and notifies the Call when a media flow is created.

MediaProvider follows RFC-3264 - An Offer/Answer Model with the Session Description Protocol (SDP).

Constructors

MediaProvider()

Creates an instance of the MediaProvider class.

Properties

FipsCompliantMediaEncryptionRequired

Gets or sets whether FIPS-compliant encryption should be used to secure media. If null, the MediaProvider should interpret a default value.

IsEarlyMediaPreferred

Gets or sets whether incoming call must perform early media renegotiation before sending a 200-OK response.

IsEscalationSupported

Gets or sets whether the media provider supports the escalation from a two-party call to conferencing.

IsMcuSupported

Gets or sets whether the media provider supports behaving as an MCU.

SrtpEncryption

Gets the value that determines how the client makes and receives encrypted audio/video calls.

SupportedMediaTypes

Gets a list of the supported media names that are acceptable in an m= line in an SDP offer/answer.

VoiceDiffService

Gets provisioned value for voice diff service.

Methods

BeginGetAnswer(OfferAnswerContext, SdpOffer, AsyncCallback, Object)

Begins the asynchronous operation to get the sdp answer from MediaProvider.

BeginGetOffer(OfferAnswerContext, Collection<SdpContentDescription>, AsyncCallback, Object)

Begins the asynchronous operation to get the sdp offer from MediaProvider.

BeginSdpRenegotiation(CallDialogContext, AsyncCallback, Object)

Begins SDP renegotiation for a given callDialog.

BeginSendMessage(CallDialogContext, MessageType, ContentDescription, IEnumerable<SignalingHeader>, AsyncCallback, Object)

Begins the asynchronous operation to send a message on a specific CallDialogContext.

BeginTerminateCall(CallDialogContext, IEnumerable<SignalingHeader>, AsyncCallback, Object)

Begins the asynchronous operation to terminate the Call.

BeginTerminateCall(CallDialogContext, IEnumerable<SignalingHeader>, DiagnosticsInformation, AsyncCallback, Object)

Begins the asynchronous operation to terminate the Call with specific diagnostic information.

BeginTerminateMedia(CallDialogContext, Boolean, AsyncCallback, Object)

Begins the asynchronous operation to terminate media session for a given CallDialogContext.

EndGetAnswer(IAsyncResult)

Completes the operation started by BeginGetAnswer.

EndGetOffer(IAsyncResult)

Completes the operation started by BeginGetOffer.

EndSdpRenegotiation(IAsyncResult)

Ends the asynchronous operation started by the BeginSdpRenegotiation method.

EndSendMessage(IAsyncResult)

Completes the asynchronous operation started by the BeginSendMessage.

EndTerminateCall(IAsyncResult)

Completes the asynchronous operation started by BeginTerminateCall.

EndTerminateMedia(IAsyncResult)

Completes the asynchronous operation started by BeginTerminateMedia.

HandleMessage(CallDialogContext, CallMessageReceivedEventArgs)

Handles the message.

RaiseEvent<T>(CallDialogContext, EventHandler<T>, Object, T)

Raises the specified event.

RaiseFlowConfigurationRequestedHandler(OfferAnswerContext, FlowConfigurationRequestedEventArgs)

Raises the FlowConfigurationRequested event.

SetAnswer(OfferAnswerContext, SdpOffer, SdpAnswer)

Sets the incoming answer on MediaProvider.

SetIncomingCallOffer(OfferAnswerContext, SdpOffer)

Sets the initial offer on the MediaProvider.

TryGetPortRange(String, Int32, Int32)

Tries to get the port range defined for the media type.

UpdatePrimarySessionContext(CallDialogContext, CallDialogContext)

Updates the context of the primary session.

Applies to