MediaStreamSourceSampleRequest.GetDeferral | getDeferral method

Applies to Windows and Windows Phone

Defers assigning a MediaStreamSample to MediaStreamSourceSampleRequest object.

Syntax


public:
MediaStreamSourceSampleRequestDeferral^ GetDeferral()

Parameters

This method has no parameters.

Return value

Type: MediaStreamSourceSampleRequestDeferral

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Core
Windows::Media::Core [C++]

Metadata

Windows.winmd

See also

MediaStreamSourceSampleRequest

 

 

Show:
© 2014 Microsoft