AudioStreamDescriptor.Label Property

Definition

Gets or sets an app-defined label that identifies an audio stream in a MediaEncodingProfile that contains multiple streams.

public:
 property Platform::String ^ Label { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Label();

void Label(winrt::hstring value);
public string Label { get; set; }
var string = audioStreamDescriptor.label;
audioStreamDescriptor.label = string;
Public Property Label As String

Property Value

String

Platform::String

winrt::hstring

An app-defined label that identifies an audio stream

Implements

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 for each stream in a single MediaEncodingProfile must be unique. Calling SetAudioTracks to add a stream descriptor containing a duplicate label will result in an invalid argument error.

Applies to