---
title: MediaType
framework: nowplaying
role: symbol
role_heading: Enumeration
path: nowplaying/mediatype
---

# MediaType

The type of media being played.

## Declaration

```swift
enum MediaType
```

## Overview

Overview Use this enumeration to specify whether content is audio-only or includes video. The system uses this information to optimize the Now Playing interface.

## Topics

### Enumeration Cases

- [MediaType.audio](nowplaying/mediatype/audio.md)
- [MediaType.video](nowplaying/mediatype/video.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)

## See Also

### Specifying type and duration

- [MediaDuration](nowplaying/mediaduration.md)
