Share via


MediaStreamSource.AddStreamDescriptor(IMediaStreamDescriptor) Method

Definition

Adds a new stream descriptor to the MediaStreamSource.

public:
 virtual void AddStreamDescriptor(IMediaStreamDescriptor ^ descriptor) = AddStreamDescriptor;
void AddStreamDescriptor(IMediaStreamDescriptor const& descriptor);
public void AddStreamDescriptor(IMediaStreamDescriptor descriptor);
function addStreamDescriptor(descriptor)
Public Sub AddStreamDescriptor (descriptor As IMediaStreamDescriptor)

Parameters

descriptor
IMediaStreamDescriptor

The descriptor to add.

Remarks

This method can only be invoked when the MediaStreamSource is not yet in use by the media pipeline, for example by a video object, a MediaElement, or a MediaTranscoder.

It is possible to invoke this method multiple times.

Applies to