MediaEncodingProfile.SetVideoTracks Method
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.
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
A collection of VideoStreamDescriptor objects.
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.