MediaStreamSourceSampleRequestDeferral Class
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.
Provides a way for the application to asynchronously report that it has completed retrieving the MediaStreamSample.
public ref class MediaStreamSourceSampleRequestDeferral sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaStreamSourceSampleRequestDeferral final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaStreamSourceSampleRequestDeferral
Public NotInheritable Class MediaStreamSourceSampleRequestDeferral
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
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.
Methods
Complete() |
Reports that the application has completed retrieving the MediaStreamSample. |
Applies to
See also
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla