MediaStreamSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MediaStreamSource(IMediaStreamDescriptor) |
Creates an instance of MediaStreamSource from the specified IMediaStreamDescriptor. |
MediaStreamSource(IMediaStreamDescriptor, IMediaStreamDescriptor) |
Creates an instance of MediaStreamSource from two IMediaStreamDescriptor objects. |
MediaStreamSource(IMediaStreamDescriptor)
Creates an instance of MediaStreamSource from the specified IMediaStreamDescriptor.
public:
MediaStreamSource(IMediaStreamDescriptor ^ descriptor);
MediaStreamSource(IMediaStreamDescriptor const& descriptor);
public MediaStreamSource(IMediaStreamDescriptor descriptor);
function MediaStreamSource(descriptor)
Public Sub New (descriptor As IMediaStreamDescriptor)
Parameters
- descriptor
- IMediaStreamDescriptor
The AudioStreamDescriptor or VideoStreamDescriptor to create the MediaStreamSource from.
Remarks
This constructor creates a MediaStreamSource using a single AudioStreamDescriptor or VideoStreamDescriptor object. If the MediaStreamSource needs descriptors, 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.
See also
Applies to
MediaStreamSource(IMediaStreamDescriptor, IMediaStreamDescriptor)
Creates an instance of MediaStreamSource from two IMediaStreamDescriptor objects.
public:
MediaStreamSource(IMediaStreamDescriptor ^ descriptor, IMediaStreamDescriptor ^ descriptor2);
MediaStreamSource(IMediaStreamDescriptor const& descriptor, IMediaStreamDescriptor const& descriptor2);
public MediaStreamSource(IMediaStreamDescriptor descriptor, IMediaStreamDescriptor descriptor2);
function MediaStreamSource(descriptor, descriptor2)
Public Sub New (descriptor As IMediaStreamDescriptor, descriptor2 As IMediaStreamDescriptor)
Parameters
- descriptor
- IMediaStreamDescriptor
The first AudioStreamDescriptor or VideoStreamDescriptor to create the MediaStreamSource from.
- descriptor2
- 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.