MediaElement.AudioCategory MediaElement.AudioCategory MediaElement.AudioCategory MediaElement.AudioCategory Property

Definition

Gets or sets a value that describes the purpose of the audio information in an audio stream.

public : AudioCategory AudioCategory { get; set; }
AudioCategory AudioCategory();

void AudioCategory(AudioCategory audiocategory);
public AudioCategory AudioCategory { get; set; }
Public ReadWrite 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.

See also