Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.62 KB

mediastreamsourcesamplerequestdeferral.md

File metadata and controls

25 lines (17 loc) · 1.62 KB
-api-id -api-type
T:Windows.Media.Core.MediaStreamSourceSampleRequestDeferral
winrt class

Windows.Media.Core.MediaStreamSourceSampleRequestDeferral

-description

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

-remarks

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 UWP app.

-examples

-see-also

MediaStreamSource Sample