SystemMediaTransportControls.SoundLevel Property

Definition

Gets the sound level of the media for the capture and render streams.

public:
 property SoundLevel SoundLevel { SoundLevel get(); };
SoundLevel SoundLevel();
public SoundLevel SoundLevel { get; }
var soundLevel = systemMediaTransportControls.soundLevel;
Public ReadOnly Property SoundLevel As SoundLevel

Property Value

SoundLevel

The sound level.

Remarks

Music and media capture apps should monitor the SoundLevel to determine whether the audio streams on the app have been Muted. For apps using the MediaCapture object, capture will be automatically stopped when the capture streams of the app are muted. Capture is not re-started automatically when the audio streams are unmuted, so the SoundLevel changed notification can be used to restart capture. Use the PropertyChanged event to determine when the SoundLevel property changes.

Applies to