Video​Stream​Descriptor Video​Stream​Descriptor Video​Stream​Descriptor Class

Definition

Defines an video media stream.

public sealed class VideoStreamDescriptor : IMediaStreamDescriptor, IVideoStreamDescriptorpublic sealed class VideoStreamDescriptor : IMediaStreamDescriptor, IVideoStreamDescriptorPublic NotInheritable Class VideoStreamDescriptor Implements IMediaStreamDescriptor, IVideoStreamDescriptor
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Constructors

VideoStreamDescriptor(VideoEncodingProperties) VideoStreamDescriptor(VideoEncodingProperties) VideoStreamDescriptor(VideoEncodingProperties)

Creates an instance of the VideoEncodingProperties class using the specified video encoding.

public VideoStreamDescriptor(VideoEncodingProperties encodingProperties)public VideoStreamDescriptor(VideoEncodingProperties encodingProperties)Public Sub New(encodingProperties As VideoEncodingProperties)
Parameters
encodingProperties
VideoEncodingProperties VideoEncodingProperties VideoEncodingProperties

The encoding properties for the video stream.

Attributes

Properties

EncodingProperties EncodingProperties EncodingProperties

Gets the encoding properties on the video stream.

public VideoEncodingProperties EncodingProperties { get; }public VideoEncodingProperties EncodingProperties { get; }Public ReadOnly Property EncodingProperties As VideoEncodingProperties
Value
VideoEncodingProperties VideoEncodingProperties VideoEncodingProperties

The encoding properties on the video stream.

Attributes

Remarks

If the media pipeline cannot handle the new encoding properties, the MediaStreamSource will raise the Closed event which provides information regarding the error.

IsSelected IsSelected IsSelected

Specifies whether the stream is currently in use by the MediaStreamSource.

public PlatForm::Boolean IsSelected { get; }public bool IsSelected { get; }Public ReadOnly Property IsSelected As bool
Value
bool bool bool

true if the stream is currently in use by the MediaStreamSource; otherwise, false.

Attributes

Remarks

IsSelected is true if the stream represented by the stream descriptor is currently selected by the media pipeline. For example, if it is currently in use by the MediaStreamSource. Otherwise, the value is false.

The MediaStreamSource only raises the SampleRequested event for streams which are selected.

Language Language Language

Gets or sets the RFC-1766 language code for the stream.

public PlatForm::String Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As string
Value
string string string

The RFC-1766 language code for the stream.

Attributes

Remarks

The initial value is an empty string.

The language is specified using a RFC-1766 language code, for example, “en-US”.

Name Name Name

Gets or sets the name of the stream.

public PlatForm::String Name { get; set; }public string Name { get; set; }Public ReadWrite Property Name As string
Value
string string string

The name of the stream.

Attributes

Remarks

The initial value is an empty string.

The name is a free-form human readable string that describes the stream, for example, “English soundtrack”.

See Also