Contents

MPMediaItemAnimatedArtwork

An animated image, such as an animated music album cover art, for a media item.

Declaration

class MPMediaItemAnimatedArtwork

Mentioned in

Overview

A single instance of animated artwork is comprised of two assets: an artwork video asset, and a preview image which should match the first frame of the artwork video. The preview image may be used when displaying the animated artwork whilst the video becomes available.

Both the preview image and artwork video can be fetched asynchronously and will only be requested when required at point of display. Aim to provide preview images as quickly as possible once requested, and ideally synchronously.

Video asset URLs you provide must be local file URLs. You should make the associated assets available locally before providing them via the relevant handler, for example by fetching the associated video asset over the network. The URLs should remain valid for the lifetime of the MPMediaItemAnimatedArtwork, once provided.

MPMediaItemAnimatedArtwork should not be subclassed.

Topics

Initializers

See Also

Media items and playlists