MediaProvider.BeginGetOffer Method
Begins the asynchronous operation to get the sdp offer from MediaProvider.
Namespace: Microsoft.Rtc.Collaboration.ComponentModel
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Protected MustOverride Function BeginGetOffer ( _
offerAnswerContext As OfferAnswerContext, _
lastLocalOutgoingSdps As Collection(Of SdpContentDescription), _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim offerAnswerContext As OfferAnswerContext
Dim lastLocalOutgoingSdps As Collection(Of SdpContentDescription)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = Me.BeginGetOffer(offerAnswerContext, _
lastLocalOutgoingSdps, userCallback, _
state)
protected abstract IAsyncResult BeginGetOffer(
OfferAnswerContext offerAnswerContext,
Collection<SdpContentDescription> lastLocalOutgoingSdps,
AsyncCallback userCallback,
Object state
)
Parameters
- offerAnswerContext
Type: Microsoft.Rtc.Collaboration.ComponentModel.OfferAnswerContext
The OfferAnswerContext for the corresponding call.
- lastLocalOutgoingSdps
Type: System.Collections.ObjectModel.Collection<SdpContentDescription>
Last outgoing local SDPs, which can be null if this method is invoked for an initial offer.
- userCallback
Type: System.AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
Type: System.Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Return Value
Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.
Remarks
The last local outgoing SDP can be either the last outgoing offer or answer. An outgoing offer can contain multiple SDP session descriptions.