Represents a media sample used by the MediaStreamSource.
The MediaStreamSample class has these types of members:
The MediaStreamSample class has these events.
|Processed||Occurs when the MediaStreamSample has been processed by the media pipeline.|
The MediaStreamSample class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|CreateFromBuffer||Creates a MediaStreamSample from an IBuffer.|
|CreateFromStreamAsync||Asynchronously creates a MediaStreamSample from an IInputStream.|
The MediaStreamSample class has these properties.
|Read-only||Gets the buffer which encapsulates the MediaStreamSample data.|
|Read/write||Gets and sets the decode timestamp for this MediaStreamSample.|
|Read/write||Gets or sets a value to indicate that the previous MediaStreamSample in the sequence is missing.|
|Read/write||Gets the duration of the sample.|
|Read-only||Gets the extended property set which enables getting and setting properties on the MediaStreamSample.|
|Read/write||Gets or sets a value that indicates the MediaStreamSample contains a keyframe.|
|Read-only||Gets a MediaStreamSampleProtectionProperties object, which is used for getting and setting properties that are specific to the Digital Rights Management (DRM) protection of the MediaStreamSample.|
|Read-only||Gets the time at which a sample should be rendered. This is also referred to as the presentation time.|
See the MediaStreamSource Sample for an example of using Media Stream Source in a Windows Store app.
Minimum supported client
|Windows 8.1 [Windows Store apps, desktop apps]|
Minimum supported server
|Windows Server 2012 R2 [Windows Store apps, desktop apps]|
Minimum supported phone
|Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]|