MediaStreamSourceSampleRequest.GetDeferral Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defers assigning a MediaStreamSample to MediaStreamSourceSampleRequest object.
public:
virtual MediaStreamSourceSampleRequestDeferral ^ GetDeferral() = GetDeferral;
MediaStreamSourceSampleRequestDeferral GetDeferral();
public MediaStreamSourceSampleRequestDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As MediaStreamSourceSampleRequestDeferral
Returns
The deferral.
Remarks
You can use a deferral when you want to make an asynchronous call to retrieve the MediaStreamSample. The MediaStreamSource will then wait for you to supply the MediaStreamSample until you mark the deferral as complete.
To create a deferral, call the GetDeferral method to instruct the MediaStreamSource to wait for the MediaStreamSample. After you have assigned the MediaStreamSample to the Sample property of the MediaStreamSourceSampleRequest object, call the MediaStreamSourceSampleRequestDeferral.Complete method to end the deferral.