Dela via


MediaStreamSourceSampleRequest Class

Definition

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

public ref class MediaStreamSourceSampleRequest 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 MediaStreamSourceSampleRequest 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 MediaStreamSourceSampleRequest
Public NotInheritable Class MediaStreamSourceSampleRequest
Inheritance
Object Platform::Object IInspectable MediaStreamSourceSampleRequest
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

Properties

Sample

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

StreamDescriptor

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

Methods

GetDeferral()

Defers assigning a MediaStreamSample to MediaStreamSourceSampleRequest object.

ReportSampleProgress(UInt32)

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

Applies to

See also