---
title: mediaPlayingPaused()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsextensioncontext/mediaplayingpaused()
---

# mediaPlayingPaused()

Tells the system that the Notification Content app extension stopped playing a media file.

## Declaration

```swift
func mediaPlayingPaused()
```

## Discussion

Discussion In your Notification Content app extension code, call this method when you programmatically stop playing a media file. When called, the system updates the appearance of the media playback button displayed in the notification content extension’s interface. For more information about implementing a notification content extension, see UNNotificationContentExtension.

## See Also

### Controlling media playback in notification content extensions

- [mediaPlayingStarted()](foundation/nsextensioncontext/mediaplayingstarted().md)
