<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVCaptureEvent/play(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureEvent(im)playSound:"
  },
  "title" : "play(_:)"
}
-->

# play(_:)

Plays the specified capture sound through AirPods.

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

## Parameters

`sound`

The capture sound to play for this event.

## Return Value

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

## Discussion

This method has no effect if [`shouldPlaySound`](/documentation/AVKit/AVCaptureEvent/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)