Share via


MediaPlayer.Volume Property

Definition

Get or sets the audio volume for media playback.

public:
 property double Volume { double get(); void set(double value); };
double Volume();

void Volume(double value);
public double Volume { get; set; }
var double = mediaPlayer.volume;
mediaPlayer.volume = double;
Public Property Volume As Double

Property Value

Double

double

The audio volume for media playback. The allowed range of values is 0 to 1. Values outside of this range will be ignored. The default value is 1.

Applies to