---
title: "init(identifier:)"
framework: mediaplayer
role: symbol
role_heading: Initializer
path: "mediaplayer/mpcontentitem/init(identifier:)"
---

# init(identifier:)

Sets the identifier for a media item.

## Declaration

```swift
init(identifier: String)
```

## Parameters

- `identifier`: A unique identifier for the content item.

## Return Value

Return Value The created MPContentItem object.

## Discussion

Discussion Each media item identifier must be unique. The use of nonunique identifiers can prevent media items from updating properly. Create a new identifier when creating an MPContentItem object.
