---
title: volume
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayer/volume
---

# volume

The audio playback volume for the player.

## Declaration

```swift
nonisolated var volume: Float { get set }
```

## Discussion

Discussion A value of 0.0 indicates silence; a value of 1.0 (the default) indicates full audio volume for the player instance. This property is used to control the player audio volume relative to the system volume. There is no programmatic way to control the system volume in iOS, but you can use the MediaPlayer framework’s MPVolumeView class to present a standard user interface for controlling system volume.

## See Also

### Configuring audio behavior

- [isMuted](avfoundation/avplayer/ismuted.md)
- [allowedAudioSpatializationFormats](avfoundation/avplayeritem/allowedaudiospatializationformats.md)
- [isAudioSpatializationAllowed](avfoundation/avplayeritem/isaudiospatializationallowed.md)
- [audioOutputSuppressedDueToNonMixableAudioRoute](avfoundation/avplayer/audiooutputsuppressedduetononmixableaudioroute.md)
- [intendedSpatialAudioExperience](avfoundation/avplayer/intendedspatialaudioexperience-1bd87.md)
