MediaStreamSource.MediaStreamSource(IMediaStreamDescriptor, IMediaStreamDescriptor) constructor

Applies to Windows and Windows Phone

Creates an instance of MediaStreamSource from two IMediaStreamDescriptor objects.

Syntax


var mediaStreamSource = new Windows.Media.Core.MediaStreamSource(descriptor, descriptor2);

Parameters

descriptor

Type: IMediaStreamDescriptor

The first AudioStreamDescriptor or VideoStreamDescriptor to create the MediaStreamSource from.

descriptor2

Type: IMediaStreamDescriptor

The second AudioStreamDescriptor or VideoStreamDescriptor to create the MediaStreamSource from.

Remarks

This constructor creates a MediaStreamSource using a two AudioStreamDescriptor or VideoStreamDescriptor objects. If the MediaStreamSource needs only on descriptor, the MediaStreamSource constructor overload which takes two descriptor can be used.

It is possible to add additional descriptors to a MediaStreamSource after it has been created, by invoking the AddStreamDescriptor method.

Requirements

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
MediaStreamSource(IMediaStreamDescriptor)

 

 

Show:
© 2014 Microsoft