---
title: assetURL
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpmediaitem/asseturl
---

# assetURL

The URL that points to the media item.

## Declaration

```swift
var assetURL: URL? { get }
```

## Discussion

Discussion A URL pointing to the media item, which you can use to create an AVAsset object or other URL-based AVFoundation object.

## See Also

### Media item properties

- [albumArtist](mediaplayer/mpmediaitem/albumartist.md)
- [albumArtistPersistentID](mediaplayer/mpmediaitem/albumartistpersistentid.md)
- [albumPersistentID](mediaplayer/mpmediaitem/albumpersistentid.md)
- [albumTitle](mediaplayer/mpmediaitem/albumtitle.md)
- [albumTrackCount](mediaplayer/mpmediaitem/albumtrackcount.md)
- [albumTrackNumber](mediaplayer/mpmediaitem/albumtracknumber.md)
- [artist](mediaplayer/mpmediaitem/artist.md)
- [artistPersistentID](mediaplayer/mpmediaitem/artistpersistentid.md)
- [artwork](mediaplayer/mpmediaitem/artwork.md)
- [beatsPerMinute](mediaplayer/mpmediaitem/beatsperminute.md)
- [bookmarkTime](mediaplayer/mpmediaitem/bookmarktime.md)
- [isCloudItem](mediaplayer/mpmediaitem/isclouditem.md)
- [comments](mediaplayer/mpmediaitem/comments.md)
- [isCompilation](mediaplayer/mpmediaitem/iscompilation.md)
- [isPreorder](mediaplayer/mpmediaitem/ispreorder.md)
