Edit

Share via


MediaSource.BeginPrepareSource Method

Definition

Prepares the media source.

public:
 IAsyncResult ^ BeginPrepareSource(Microsoft::Rtc::Collaboration::AudioVideo::MediaSourceOpenMode mode, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginPrepareSource (Microsoft.Rtc.Collaboration.AudioVideo.MediaSourceOpenMode mode, AsyncCallback userCallback, object state);
member this.BeginPrepareSource : Microsoft.Rtc.Collaboration.AudioVideo.MediaSourceOpenMode * AsyncCallback * obj -> IAsyncResult
Public Function BeginPrepareSource (mode As MediaSourceOpenMode, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

mode
MediaSourceOpenMode

The open mode.

userCallback
AsyncCallback

The method to be called when the asynchronous operation is completed.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Exceptions

Thrown when the mode argument is not a value in the MediaSourceOpenMode enumerated type.

Thrown when the audio/video platform is not initialized.

Remarks

An application must call this method before any Player begins playing a MediaSource. The application must also call EndPrepareSource.

Applies to