MediaEncodingProfile.SetAudioTracks(IIterable<AudioStreamDescriptor>) MediaEncodingProfile.SetAudioTracks(IIterable<AudioStreamDescriptor>) MediaEncodingProfile.SetAudioTracks(IIterable<AudioStreamDescriptor>) MediaEncodingProfile.SetAudioTracks(IIterable<AudioStreamDescriptor>) MediaEncodingProfile.SetAudioTracks(IIterable<AudioStreamDescriptor>) Method

Definition

Sets the list of AudioStreamDescriptor objects describing the audio streams included in the MediaEncodingProfile.

public : void SetAudioTracks(IIterable<AudioStreamDescriptor> value)
void SetAudioTracks(IIterable<AudioStreamDescriptor> value) const;
public void SetAudioTracks(IEnumerable<AudioStreamDescriptor> value)
Public Sub SetAudioTracks(value As IEnumerable(Of AudioStreamDescriptor))
mediaEncodingProfile.setAudioTracks(value);

Parameters

value
IEnumerable<AudioStreamDescriptor> IEnumerable<AudioStreamDescriptor> IEnumerable<AudioStreamDescriptor>

A list of VideoStreamDescriptor objects.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

The Label field for each AudioStreamDescriptor 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 Audio property, the list of video tracks is reset to a list with a single AudioStreamDescriptor entry. If you retrieve the Audio property after calling SetVideoTracks, the property will return the first entry in the provided list.