The playback volume for the audio player, ranging from
1 on a linear scale.
- iOS 2.2+
- macOS 10.7+
- tvOS 9.0+
- watchOS 3.2+
A value of
0 indicates silence; a value of
1 (the default) indicates full volume for the audio player instance.
Use this property to control an audio player’s volume relative to other audio output.
To provide UI in iOS for adjusting system audio playback volume, use the
MPVolume class, which provides media playback controls that users expect and whose appearance you can customize.