---
title: "play(_:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avcaptureevent/play(_:)"
---

# play(_:)

Plays the specified capture sound through AirPods.

## Declaration

```swift
func play(_ sound: AVCaptureEventSound) -> Bool
```

## Parameters

- `sound`: The capture sound to play for this event.

## Return Value

Return Value A Boolean value that indicates whether the system played the sound.

## Discussion

Discussion This method has no effect if shouldPlaySound is false or if the event object’s lifetime exceeds 15 seconds. important: To use AirPods Camera Control, it must be available in your country or region. AirPods Camera Control is not currently available in the European Union.

## See Also

### Playing a sound

- [shouldPlaySound](avkit/avcaptureevent/shouldplaysound.md)
