MediaStreamSourceSampleRequestDeferral MediaStreamSourceSampleRequestDeferral MediaStreamSourceSampleRequestDeferral MediaStreamSourceSampleRequestDeferral Class


Provides a way for the application to asynchronously report that it has completed retrieving the MediaStreamSample.

public : sealed class MediaStreamSourceSampleRequestDeferral : IMediaStreamSourceSampleRequestDeferralpublic sealed class MediaStreamSourceSampleRequestDeferral : IMediaStreamSourceSampleRequestDeferralPublic NotInheritable Class MediaStreamSourceSampleRequestDeferral Implements IMediaStreamSourceSampleRequestDeferral// You can use this class in JavaScript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


You can use a deferral to retrieve the MediaStreamSample asynchronously. The MediaStreamSource will wait until you mark the deferral as complete.

To create a deferral, call MediaStreamSourceSampleRequest.GetDeferral. This will instruct the MediaStreamSource to wait for the MediaStreamSample. After you have assigned the MediaStreamSample to the MediaStreamSourceSampleRequest.Sample property, call the Complete method to end the deferral.

See the MediaStreamSource Sample for an example of using Media Stream Source in a Windows Store app.


Complete() Complete() Complete() Complete()

Reports that the application has completed retrieving the MediaStreamSample.

public : void Complete()public void Complete()Public Function Complete() As void// You can use this method in JavaScript.

See Also