EN
此内容没有您的语言版本,但有英语版本。

MediaStreamSource.SampleRequested | samplerequested event

Occurs when the MediaStreamSource request a MediaStreamSample for a specified stream.

Syntax


Public Event SampleRequested As TypedEventHandler(Of MediaStreamSource, MediaStreamSourceSampleRequestedEventArgs)

Event information

Delegate TypedEventHandler<MediaStreamSource, MediaStreamSourceSampleRequestedEventArgs>

Remarks

Upon receiving this event, the application should assign a MediaStreamSample for the requested stream to the Sample property of the MediaStreamSourceSampleRequest object.

If the application is temporarily unable to deliver the MediaStreamSample, it should obtain the MediaStreamSourceSampleRequestDeferral object and invoke ReportSampleProgress on a regular basis until it assigns a MediaStreamSample to the Sample property and calls Complete on the MediaStreamSourceSampleRequestDeferral object. The recommended interval between each invocation of ReportSampleProgress is 500 milliseconds.

If the specified stream does not have any more samples, the application should leave the Sample property unassigned or set it to null.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

MediaStreamSource
MediaStreamSourceSampleRequestedEventArgs

 

 

显示:
© 2015 Microsoft