<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/LibraryMusicVideoSortProperties",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit07LibraryA19VideoSortPropertiesP"
  },
  "title" : "LibraryMusicVideoSortProperties"
}
-->

# LibraryMusicVideoSortProperties

Music video properties your app uses to sort results for a library request.

```
protocol LibraryMusicVideoSortProperties
```

## Topics

### Instance Properties

[`var albumTitle: String?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/albumTitle)

The title of the album the music video appears on.

[`var artistName: String?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/artistName)

The artist’s name.

[`var duration: TimeInterval?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/duration)

The duration of the music video.

[`var lastPlayedDate: Date?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/lastPlayedDate)

The date when the user last played the music video on this device.

[`var libraryAddedDate: Date?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/libraryAddedDate)

The date when the user added the music video to the library.

[`var playCount: Int?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/playCount)

The number of times the user played the music video.

[`var title: String`](/documentation/MusicKit/LibraryMusicVideoSortProperties/title)

The title of the music video.

[`var trackNumber: Int?`](/documentation/MusicKit/LibraryMusicVideoSortProperties/trackNumber)

The music video’s number in the album’s track list.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)