MediaElement.AudioCategory 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 a value that describes the purpose of the audio information in an audio stream.
public:
property AudioCategory AudioCategory { AudioCategory get(); void set(AudioCategory value); };
AudioCategory AudioCategory();
void AudioCategory(AudioCategory value);
public AudioCategory AudioCategory { get; set; }
var audioCategory = mediaElement.audioCategory;
mediaElement.audioCategory = audioCategory;
Public Property AudioCategory As AudioCategory
<MediaElement AudioCategory="audioCategoryMemberName" /.
Property Value
A value of the enumeration.
Remarks
For hardware audio offload to be automatically applied, the audio category must be set to ForegroundOnlyMedia or BackgroundCapableMedia. Hardware audio offload optimizes audio rendering which can improve functionality and battery life.
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro