Class MediaPlayer


  • public final class MediaPlayer
    extends java.lang.Object
    • Method Detail

      • MPVolumeSettingsAlertShow

        public static void MPVolumeSettingsAlertShow()
      • MPVolumeSettingsAlertHide

        public static void MPVolumeSettingsAlertHide()
      • MPVolumeSettingsAlertIsVisible

        public static boolean MPVolumeSettingsAlertIsVisible()
      • MPMediaEntityPropertyPersistentID

        public static java.lang.String MPMediaEntityPropertyPersistentID()
        filterable
      • MPMediaItemPropertyPersistentID

        public static java.lang.String MPMediaItemPropertyPersistentID()
        filterable
      • MPMediaItemPropertyMediaType

        public static java.lang.String MPMediaItemPropertyMediaType()
        filterable
      • MPMediaItemPropertyTitle

        public static java.lang.String MPMediaItemPropertyTitle()
        filterable
      • MPMediaItemPropertyAlbumTitle

        public static java.lang.String MPMediaItemPropertyAlbumTitle()
      • MPMediaItemPropertyAlbumPersistentID

        public static java.lang.String MPMediaItemPropertyAlbumPersistentID()
        filterable
      • MPMediaItemPropertyArtist

        public static java.lang.String MPMediaItemPropertyArtist()
        filterable
      • MPMediaItemPropertyArtistPersistentID

        public static java.lang.String MPMediaItemPropertyArtistPersistentID()
        filterable
      • MPMediaItemPropertyAlbumArtist

        public static java.lang.String MPMediaItemPropertyAlbumArtist()
        filterable
      • MPMediaItemPropertyAlbumArtistPersistentID

        public static java.lang.String MPMediaItemPropertyAlbumArtistPersistentID()
        filterable
      • MPMediaItemPropertyGenre

        public static java.lang.String MPMediaItemPropertyGenre()
        filterable
      • MPMediaItemPropertyGenrePersistentID

        public static java.lang.String MPMediaItemPropertyGenrePersistentID()
        filterable
      • MPMediaItemPropertyComposer

        public static java.lang.String MPMediaItemPropertyComposer()
        filterable
      • MPMediaItemPropertyComposerPersistentID

        public static java.lang.String MPMediaItemPropertyComposerPersistentID()
        filterable
      • MPMediaItemPropertyPlaybackDuration

        public static java.lang.String MPMediaItemPropertyPlaybackDuration()
      • MPMediaItemPropertyAlbumTrackNumber

        public static java.lang.String MPMediaItemPropertyAlbumTrackNumber()
      • MPMediaItemPropertyAlbumTrackCount

        public static java.lang.String MPMediaItemPropertyAlbumTrackCount()
      • MPMediaItemPropertyDiscNumber

        public static java.lang.String MPMediaItemPropertyDiscNumber()
      • MPMediaItemPropertyDiscCount

        public static java.lang.String MPMediaItemPropertyDiscCount()
      • MPMediaItemPropertyArtwork

        public static java.lang.String MPMediaItemPropertyArtwork()
      • MPMediaItemPropertyIsExplicit

        public static java.lang.String MPMediaItemPropertyIsExplicit()
      • MPMediaItemPropertyLyrics

        public static java.lang.String MPMediaItemPropertyLyrics()
      • MPMediaItemPropertyIsCompilation

        public static java.lang.String MPMediaItemPropertyIsCompilation()
        filterable
      • MPMediaItemPropertyReleaseDate

        public static java.lang.String MPMediaItemPropertyReleaseDate()
      • MPMediaItemPropertyBeatsPerMinute

        public static java.lang.String MPMediaItemPropertyBeatsPerMinute()
      • MPMediaItemPropertyComments

        public static java.lang.String MPMediaItemPropertyComments()
      • MPMediaItemPropertyAssetURL

        public static java.lang.String MPMediaItemPropertyAssetURL()
      • MPMediaItemPropertyIsCloudItem

        public static java.lang.String MPMediaItemPropertyIsCloudItem()
        filterable
      • MPMediaItemPropertyHasProtectedAsset

        public static java.lang.String MPMediaItemPropertyHasProtectedAsset()
        filterable
      • MPMediaItemPropertyPodcastTitle

        public static java.lang.String MPMediaItemPropertyPodcastTitle()
        filterable
      • MPMediaItemPropertyPodcastPersistentID

        public static java.lang.String MPMediaItemPropertyPodcastPersistentID()
        filterable
      • MPMediaItemPropertyPlayCount

        public static java.lang.String MPMediaItemPropertyPlayCount()
        filterable
      • MPMediaItemPropertySkipCount

        public static java.lang.String MPMediaItemPropertySkipCount()
      • MPMediaItemPropertyRating

        public static java.lang.String MPMediaItemPropertyRating()
      • MPMediaItemPropertyLastPlayedDate

        public static java.lang.String MPMediaItemPropertyLastPlayedDate()
      • MPMediaItemPropertyUserGrouping

        public static java.lang.String MPMediaItemPropertyUserGrouping()
      • MPMediaItemPropertyBookmarkTime

        public static java.lang.String MPMediaItemPropertyBookmarkTime()
      • MPMediaItemPropertyDateAdded

        public static java.lang.String MPMediaItemPropertyDateAdded()
      • MPMediaLibraryDidChangeNotification

        public static java.lang.String MPMediaLibraryDidChangeNotification()
        Any items or playlists which were previously cached should be re-evaluated from queries when MPMediaLibraryDidChangeNotification is posted.
      • MPMediaPlaylistPropertyPersistentID

        public static java.lang.String MPMediaPlaylistPropertyPersistentID()
        filterable
      • MPMediaPlaylistPropertyName

        public static java.lang.String MPMediaPlaylistPropertyName()
        filterable
      • MPMediaPlaylistPropertyPlaylistAttributes

        public static java.lang.String MPMediaPlaylistPropertyPlaylistAttributes()
        filterable
      • MPMediaPlaylistPropertySeedItems

        public static java.lang.String MPMediaPlaylistPropertySeedItems()
        For playlists with attribute MPMediaPlaylistAttributeGenius, the seedItems are the MPMediaItems which were used to the generate the playlist. Returns nil for playlists without MPMediaPlaylistAttributeGenius set.
      • MPMediaPlaylistPropertyDescriptionText

        public static java.lang.String MPMediaPlaylistPropertyDescriptionText()
      • MPMediaPlaylistPropertyAuthorDisplayName

        public static java.lang.String MPMediaPlaylistPropertyAuthorDisplayName()
      • MPMediaPlaybackIsPreparedToPlayDidChangeNotification

        public static java.lang.String MPMediaPlaybackIsPreparedToPlayDidChangeNotification()
        Posted when the prepared state changes of an object conforming to the MPMediaPlayback protocol changes. This supersedes MPMoviePlayerContentPreloadDidFinishNotification.
      • MPMoviePlayerScalingModeDidChangeNotification

        public static java.lang.String MPMoviePlayerScalingModeDidChangeNotification()
        Posted when the scaling mode changes.
      • MPMoviePlayerPlaybackDidFinishNotification

        public static java.lang.String MPMoviePlayerPlaybackDidFinishNotification()
        Posted when movie playback ends or a user exits playback.
      • MPMoviePlayerPlaybackDidFinishReasonUserInfoKey

        public static java.lang.String MPMoviePlayerPlaybackDidFinishReasonUserInfoKey()
        NSNumber (MPMovieFinishReason)
      • MPMoviePlayerPlaybackStateDidChangeNotification

        public static java.lang.String MPMoviePlayerPlaybackStateDidChangeNotification()
        Posted when the playback state changes, either programatically or by the user.
      • MPMoviePlayerLoadStateDidChangeNotification

        public static java.lang.String MPMoviePlayerLoadStateDidChangeNotification()
        Posted when the network load state changes.
      • MPMoviePlayerNowPlayingMovieDidChangeNotification

        public static java.lang.String MPMoviePlayerNowPlayingMovieDidChangeNotification()
        Posted when the currently playing movie changes.
      • MPMoviePlayerWillEnterFullscreenNotification

        public static java.lang.String MPMoviePlayerWillEnterFullscreenNotification()
        Posted when the movie player enters or exits fullscreen mode.
      • MPMoviePlayerDidEnterFullscreenNotification

        public static java.lang.String MPMoviePlayerDidEnterFullscreenNotification()
      • MPMoviePlayerWillExitFullscreenNotification

        public static java.lang.String MPMoviePlayerWillExitFullscreenNotification()
      • MPMoviePlayerDidExitFullscreenNotification

        public static java.lang.String MPMoviePlayerDidExitFullscreenNotification()
      • MPMoviePlayerFullscreenAnimationDurationUserInfoKey

        public static java.lang.String MPMoviePlayerFullscreenAnimationDurationUserInfoKey()
        NSNumber of double (NSTimeInterval)
      • MPMoviePlayerFullscreenAnimationCurveUserInfoKey

        public static java.lang.String MPMoviePlayerFullscreenAnimationCurveUserInfoKey()
        NSNumber of NSUInteger (UIViewAnimationCurve)
      • MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification

        public static java.lang.String MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification()
        Posted when the movie player begins or ends playing video via AirPlay.
      • MPMoviePlayerReadyForDisplayDidChangeNotification

        public static java.lang.String MPMoviePlayerReadyForDisplayDidChangeNotification()
        Posted when the ready for display state changes.
      • MPMovieMediaTypesAvailableNotification

        public static java.lang.String MPMovieMediaTypesAvailableNotification()
        Calling -prepareToPlay on the movie player will begin determining movie properties asynchronously. These notifications are posted when the associated movie property becomes available.
      • MPMovieSourceTypeAvailableNotification

        public static java.lang.String MPMovieSourceTypeAvailableNotification()
        Posted if the movieSourceType is MPMovieSourceTypeUnknown when preparing for playback.
      • MPMovieDurationAvailableNotification

        public static java.lang.String MPMovieDurationAvailableNotification()
      • MPMovieNaturalSizeAvailableNotification

        public static java.lang.String MPMovieNaturalSizeAvailableNotification()
      • MPMoviePlayerThumbnailImageRequestDidFinishNotification

        public static java.lang.String MPMoviePlayerThumbnailImageRequestDidFinishNotification()
        Posted when each thumbnail image request is completed.
      • MPMoviePlayerThumbnailImageKey

        public static java.lang.String MPMoviePlayerThumbnailImageKey()
        UIImage, may be nil if an error occurred.
      • MPMoviePlayerThumbnailTimeKey

        public static java.lang.String MPMoviePlayerThumbnailTimeKey()
        NSNumber (double)
      • MPMoviePlayerThumbnailErrorKey

        public static java.lang.String MPMoviePlayerThumbnailErrorKey()
        NSError
      • MPMoviePlayerTimedMetadataUpdatedNotification

        public static java.lang.String MPMoviePlayerTimedMetadataUpdatedNotification()
        Posted when new timed metadata arrives.
      • MPMoviePlayerTimedMetadataUserInfoKey

        public static java.lang.String MPMoviePlayerTimedMetadataUserInfoKey()
        NSDictionary of the most recent MPTimedMetadata objects.
      • MPMoviePlayerTimedMetadataKeyName

        public static java.lang.String MPMoviePlayerTimedMetadataKeyName()
        NSString
      • MPMoviePlayerTimedMetadataKeyInfo

        public static java.lang.String MPMoviePlayerTimedMetadataKeyInfo()
        NSString
      • MPMoviePlayerTimedMetadataKeyMIMEType

        public static java.lang.String MPMoviePlayerTimedMetadataKeyMIMEType()
        NSString
      • MPMoviePlayerTimedMetadataKeyDataType

        public static java.lang.String MPMoviePlayerTimedMetadataKeyDataType()
        NSString
      • MPMoviePlayerTimedMetadataKeyLanguageCode

        public static java.lang.String MPMoviePlayerTimedMetadataKeyLanguageCode()
        NSString (ISO 639-2)
      • MPMusicPlayerControllerPlaybackStateDidChangeNotification

        public static java.lang.String MPMusicPlayerControllerPlaybackStateDidChangeNotification()
        Posted when the playback state changes, either programatically or by the user.
      • MPMusicPlayerControllerNowPlayingItemDidChangeNotification

        public static java.lang.String MPMusicPlayerControllerNowPlayingItemDidChangeNotification()
        Posted when the currently playing media item changes.
      • MPMusicPlayerControllerVolumeDidChangeNotification

        public static java.lang.String MPMusicPlayerControllerVolumeDidChangeNotification()
        Posted when the current volume changes.
      • MPVolumeViewWirelessRoutesAvailableDidChangeNotification

        public static java.lang.String MPVolumeViewWirelessRoutesAvailableDidChangeNotification()
        Posted when the wirelessRoutesAvailable property changes.
      • MPVolumeViewWirelessRouteActiveDidChangeNotification

        public static java.lang.String MPVolumeViewWirelessRouteActiveDidChangeNotification()
        Posted when the wirelessRouteActive property changes.
      • MPErrorDomain

        public static java.lang.String MPErrorDomain()
      • MPNowPlayingInfoPropertyElapsedPlaybackTime

        public static java.lang.String MPNowPlayingInfoPropertyElapsedPlaybackTime()
        NSNumber (double)
      • MPNowPlayingInfoPropertyPlaybackRate

        public static java.lang.String MPNowPlayingInfoPropertyPlaybackRate()
        NSNumber (double)
      • MPNowPlayingInfoPropertyDefaultPlaybackRate

        public static java.lang.String MPNowPlayingInfoPropertyDefaultPlaybackRate()
        NSNumber (double)
      • MPNowPlayingInfoPropertyPlaybackQueueIndex

        public static java.lang.String MPNowPlayingInfoPropertyPlaybackQueueIndex()
        NSNumber (NSUInteger)
      • MPNowPlayingInfoPropertyPlaybackQueueCount

        public static java.lang.String MPNowPlayingInfoPropertyPlaybackQueueCount()
        NSNumber (NSUInteger)
      • MPNowPlayingInfoPropertyChapterNumber

        public static java.lang.String MPNowPlayingInfoPropertyChapterNumber()
        NSNumber (NSUInteger)
      • MPNowPlayingInfoPropertyChapterCount

        public static java.lang.String MPNowPlayingInfoPropertyChapterCount()
        NSNumber (NSUInteger)
      • MPNowPlayingInfoPropertyIsLiveStream

        public static java.lang.String MPNowPlayingInfoPropertyIsLiveStream()
        NSNumber (BOOL)
      • MPNowPlayingInfoPropertyAvailableLanguageOptions

        public static java.lang.String MPNowPlayingInfoPropertyAvailableLanguageOptions()
        NSArrayRef of MPNowPlayingInfoLanguageOptionGroup
      • MPNowPlayingInfoPropertyCurrentLanguageOptions

        public static java.lang.String MPNowPlayingInfoPropertyCurrentLanguageOptions()
        NSArray of MPNowPlayingInfoLanguageOption
      • MPNowPlayingInfoCollectionIdentifier

        public static java.lang.String MPNowPlayingInfoCollectionIdentifier()
        NSString
      • MPNowPlayingInfoPropertyExternalContentIdentifier

        public static java.lang.String MPNowPlayingInfoPropertyExternalContentIdentifier()
        NSString
      • MPNowPlayingInfoPropertyExternalUserProfileIdentifier

        public static java.lang.String MPNowPlayingInfoPropertyExternalUserProfileIdentifier()
        NSString
      • MPNowPlayingInfoPropertyPlaybackProgress

        public static java.lang.String MPNowPlayingInfoPropertyPlaybackProgress()
        NSNumber (float)
      • MPNowPlayingInfoPropertyMediaType

        public static java.lang.String MPNowPlayingInfoPropertyMediaType()
        NSNumber (MPNowPlayingInfoMediaType)
      • MPLanguageOptionCharacteristicIsMainProgramContent

        public static java.lang.String MPLanguageOptionCharacteristicIsMainProgramContent()
        Common values used to to populate MPNowPlayingInfoLanguageOption's characteristics property. See the AVMediaSelectionOption documentation about Media Characteristics for more details.
      • MPLanguageOptionCharacteristicIsAuxiliaryContent

        public static java.lang.String MPLanguageOptionCharacteristicIsAuxiliaryContent()
      • MPLanguageOptionCharacteristicContainsOnlyForcedSubtitles

        public static java.lang.String MPLanguageOptionCharacteristicContainsOnlyForcedSubtitles()
      • MPLanguageOptionCharacteristicTranscribesSpokenDialog

        public static java.lang.String MPLanguageOptionCharacteristicTranscribesSpokenDialog()
      • MPLanguageOptionCharacteristicDescribesMusicAndSound

        public static java.lang.String MPLanguageOptionCharacteristicDescribesMusicAndSound()
      • MPLanguageOptionCharacteristicEasyToRead

        public static java.lang.String MPLanguageOptionCharacteristicEasyToRead()
      • MPLanguageOptionCharacteristicDescribesVideo

        public static java.lang.String MPLanguageOptionCharacteristicDescribesVideo()
      • MPLanguageOptionCharacteristicLanguageTranslation

        public static java.lang.String MPLanguageOptionCharacteristicLanguageTranslation()
      • MPLanguageOptionCharacteristicDubbedTranslation

        public static java.lang.String MPLanguageOptionCharacteristicDubbedTranslation()
      • MPLanguageOptionCharacteristicVoiceOverTranslation

        public static java.lang.String MPLanguageOptionCharacteristicVoiceOverTranslation()
      • MPMediaItemPropertyPlaybackStoreID

        public static java.lang.String MPMediaItemPropertyPlaybackStoreID()
        Matches the id used by MPMusicPlayerController to enqueue store tracks
      • MPMusicPlayerControllerQueueDidChangeNotification

        public static java.lang.String MPMusicPlayerControllerQueueDidChangeNotification()
        Posted when the queue changes
      • MPNowPlayingInfoPropertyServiceIdentifier

        public static java.lang.String MPNowPlayingInfoPropertyServiceIdentifier()
        NSString
      • MPNowPlayingInfoPropertyAssetURL

        public static java.lang.String MPNowPlayingInfoPropertyAssetURL()
        NSURL
      • MPNowPlayingInfoPropertyCurrentPlaybackDate

        public static java.lang.String MPNowPlayingInfoPropertyCurrentPlaybackDate()
        NSDate
      • MPMediaPlaylistPropertyCloudGlobalID

        public static java.lang.String MPMediaPlaylistPropertyCloudGlobalID()
        filterable