AudioStreamDescriptor.Label Property
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.
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
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.