<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AccessibilityTraits/startsMediaSession",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19AccessibilityTraitsV18startsMediaSessionACvpZ"
  },
  "title" : "startsMediaSession"
}
-->

# startsMediaSession

The accessibility element starts a media session when it is activated.

```
static let startsMediaSession: AccessibilityTraits
```

## Discussion

Use this trait to silence the audio output of an assistive technology,
such as VoiceOver, during a media session that should not be interrupted.
For example, you might use this trait to silence VoiceOver speech while
the user is recording audio.

---

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)