---
title: INPlayMediaIntentHandling
framework: intents
role: symbol
role_heading: Protocol
path: intents/inplaymediaintenthandling
---

# INPlayMediaIntentHandling

The interface an object implements to confirm and handle play media intents.

## Declaration

```swift
protocol INPlayMediaIntentHandling : NSObjectProtocol
```

## Overview

Overview Use the methods of the INPlayMediaIntentHandling protocol to confirm and handle requests for media playback in your app. Adopt this protocol in an object of your Intents app extension capable of verifying that the media is playable in your app. When handling the playback request, send the request to your app and let your app perform the playback, rather than playing the media in the extension. The lifespan of extensions is too short for media playback. Siri delivers an INPlayMediaIntent object to your handler when the user invokes the media intent shortcut. This intent object contains metadata that identifies the requested media content.

## Topics

### Resolving the Intent Parameters

- [resolveMediaItems(for:with:)](intents/inplaymediaintenthandling/resolvemediaitems(for:with:).md)
- [resolvePlayShuffled(for:with:)](intents/inplaymediaintenthandling/resolveplayshuffled(for:with:).md)
- [resolvePlaybackQueueLocation(for:with:)](intents/inplaymediaintenthandling/resolveplaybackqueuelocation(for:with:).md)
- [resolvePlaybackRepeatMode(for:with:)](intents/inplaymediaintenthandling/resolveplaybackrepeatmode(for:with:).md)
- [resolvePlaybackSpeed(for:with:)](intents/inplaymediaintenthandling/resolveplaybackspeed(for:with:).md)
- [resolveResumePlayback(for:with:)](intents/inplaymediaintenthandling/resolveresumeplayback(for:with:).md)

### Confirming the Intent

- [confirm(intent:completion:)](intents/inplaymediaintenthandling/confirm(intent:completion:).md)

### Handling the Intent

- [handle(intent:completion:)](intents/inplaymediaintenthandling/handle(intent:completion:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Playable Media Intents

- [INPlayMediaIntent](intents/inplaymediaintent.md)
- [INPlayMediaIntentResponse](intents/inplaymediaintentresponse.md)
