Udostępnij za pośrednictwem


MediaStreamSourceSampleRequest.GetDeferral Method

Definition

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.

Applies to