---
title: "init(id:title:subtitle:type:duration:artwork:animatedArtwork:)"
framework: nowplaying
role: symbol
role_heading: Initializer
path: "nowplaying/genericcontent/init(id:title:subtitle:type:duration:artwork:animatedartwork:)"
---

# init(id:title:subtitle:type:duration:artwork:animatedArtwork:)

Creates generic media content with static and animated artwork.

## Declaration

```swift
init(id: String, title: String, subtitle: String? = nil, type: MediaType, duration: MediaDuration?, artwork: Artwork, animatedArtwork: AnimatedArtwork?)
```

## Parameters

- `id`: A unique identifier for this content.
- `title`: The primary display title.
- `subtitle`: Secondary information to display below the title.
- `type`: The media type.
- `duration`: The total duration, or nil when unknown.
- `artwork`: Static artwork for the content.
- `animatedArtwork`: Animated artwork for the content, or nil when unavailable.
