Instance Property


The audio playback volume for the player.


var volume: Float { get set }


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

Managing Audio Output

var isMuted: Bool

A Boolean value that indicates whether the audio output of the player is muted.

var audioOutputDeviceUniqueID: String?

Specifies the unique ID of the Core Audio output device used to play audio.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software