---
title: mediaServicesWereResetNotification
framework: avfaudio
role: symbol
role_heading: Type Property
path: avfaudio/avaudiosession/mediaserviceswereresetnotification
---

# mediaServicesWereResetNotification

A notification the system posts when the media server restarts.

## Declaration

```swift
class let mediaServicesWereResetNotification: NSNotification.Name
```

## Discussion

Discussion Under rare circumstances, the system terminates and restarts its media services daemon. Respond to these events by reinitializing your app’s audio objects (such as players, recorders, converters, or audio queues) and resetting your audio session’s category, options, and mode configuration. Your app shouldn’t restart its media playback, recording, or processing until initiated by user action. note: You can trigger a media server reset by choosing the “Reset Media Services” selection under the Developer menu in the iOS Settings app. Using this utility helps to ensure that your app responds appropriately if media services were reset. This notification has no userInfo dictionary. The system posts this notification on the main thread. important: Apps don’t need to reregister for any audio session notifications and don’t need to reset key-value observers on audio session properties after a media services reset.

## See Also

### Handling a change of media services

- [mediaServicesWereLostNotification](avfaudio/avaudiosession/mediaserviceswerelostnotification.md)
