MediaEncodingProfile.SetVideoTracks Method

Definition

Sets the list of VideoStreamDescriptor objects describing the video streams included in the MediaEncodingProfile.

public:
 virtual void SetVideoTracks(IIterable<VideoStreamDescriptor ^> ^ value) = SetVideoTracks;
void SetVideoTracks(IIterable<VideoStreamDescriptor> const& value);
public void SetVideoTracks(IEnumerable<VideoStreamDescriptor> value);
function setVideoTracks(value)
Public Sub SetVideoTracks (value As IEnumerable(Of VideoStreamDescriptor))

Parameters

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

The Label field for each VideoStreamDescriptor in the collection must be unique. If you attempt to add more than one stream descriptor with the same label, an invalid argument error will occur.

If you set the Video property, the list of video tracks is reset to a list with a single VideoStreamDescriptor entry. If you retrieve the Video property after calling SetVideoTracks, the property will return the first entry in the provided list.

Applies to