MediaStreamSourceSampleRequest MediaStreamSourceSampleRequest MediaStreamSourceSampleRequest MediaStreamSourceSampleRequest MediaStreamSourceSampleRequest Class


Represents an object to be used by the MediaStreamSource.SampleRequest event to provide information to the application.

public : sealed class MediaStreamSourceSampleRequest : IMediaStreamSourceSampleRequest
struct winrt::Windows::Media::Core::MediaStreamSourceSampleRequest : IMediaStreamSourceSampleRequest
public sealed class MediaStreamSourceSampleRequest : IMediaStreamSourceSampleRequest
Public NotInheritable Class MediaStreamSourceSampleRequest Implements IMediaStreamSourceSampleRequest
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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


Sample Sample Sample Sample Sample

Sets the MediaStreamSample requested by the MediaStreamSource. Applications deliver a MediaStreamSample to the MediaStreamSource by assigning a value to this property.

StreamDescriptor StreamDescriptor StreamDescriptor StreamDescriptor StreamDescriptor

Gets the IMediaStreamDescriptor interface of the stream for which a MediaStreamSample is being requested.


GetDeferral() GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Defers assigning a MediaStreamSample to MediaStreamSourceSampleRequest object.

ReportSampleProgress(UInt32) ReportSampleProgress(UInt32) ReportSampleProgress(UInt32) ReportSampleProgress(UInt32) ReportSampleProgress(UInt32)

Provides a status update to the MediaStreamSource while the application is temporarily unable to deliver a requested MediaStreamSample.

See Also