---
title: mediaPlayingStarted()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsextensioncontext/mediaplayingstarted()
---

# mediaPlayingStarted()

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

## Declaration

```swift
func mediaPlayingStarted()
```

## Discussion

Discussion In your Notification Content app extension code, call this method when you programmatically begin 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

- [mediaPlayingPaused()](foundation/nsextensioncontext/mediaplayingpaused().md)
