iOS Developer Library

Developer

MediaPlayer Framework Reference MPMediaEntity Class Reference

Options
Deployment Target:

On This Page
Language:

MPMediaEntity

The MPMediaEntity class serves as the abstract superclass for MPMediaItem and MPMediaItemCollection instances, and in turn for MPMediaPlaylist instances. As the superclass, MPMediaEntity defines methods used by those subclasses.

Import Statement


import MediaPlayer @import MediaPlayer;

Availability


Available in iOS 4.2 and later.
  • You obtain metadata for a media entity by calling the valueForProperty method with these property keys. Some properties can also be used to build media property predicates, as described in MPMediaPropertyPredicate Class Reference. These properties are marked here as filterable.

    Declaration

    Swift

    let MPMediaEntityPropertyPersistentID: NSString!

    Objective-C

    NSString *const MPMediaEntityPropertyPersistentID ; // filterable

    Constants

    • MPMediaEntityPropertyPersistentID

      MPMediaEntityPropertyPersistentID

      The persistent identifier for a media entity. Value is an NSNumber object containing a uint64_t (unsigned long long).

      Can be used to build a media property predicate as described in MPMediaPropertyPredicate Class Reference.

      Available in iOS 4.2 and later.

    Import Statement