Prepares the media source.
Namespace:
Microsoft.Rtc.Collaboration.AudioVideo
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Public
Function
BeginPrepareSource ( _
mode
As
MediaSourceOpenMode, _
userCallback
As
AsyncCallback, _
state
As
Object _
)
As
IAsyncResult
|
C# |
public
IAsyncResult
BeginPrepareSource(
MediaSourceOpenMode
mode,
AsyncCallback
userCallback,
Object
state
)
|
Visual C++ |
public:
IAsyncResult^
BeginPrepareSource(
MediaSourceOpenMode
mode,
AsyncCallback^
userCallback,
Object^
state
)
|
JavaScript |
function
beginPrepareSource(
mode,
userCallback,
state);
|
Parameters
-
mode
- Type:
Microsoft.Rtc.Collaboration.AudioVideo
.
.
::
.
MediaSourceOpenMode
The open mode.
-
userCallback
- Type:
AsyncCallback
The method to be called when the asynchronous operation is
completed.
-
state
- Type:
Object
A user-provided object that distinguishes this particular
asynchronous operation from other asynchronous operations.
Return Value
An IAsyncResult that
references the asynchronous operation.
Remarks
Exceptions
Exception |
Condition |
ArgumentOutOfRangeException
|
Thrown when the mode argument is not a value in the
MediaSourceOpenMode enumerated type. |
InvalidOperationException
|
Thrown when the audio/video platform is not initialized. |
See Also