Upravit

Sdílet prostřednictvím


MediaPlayer Namespace

The MediaPlayer namespace provides high-level classes for standard playback of audio or video.

Classes

AVMediaSelectionGroup_MPNowPlayingInfoLanguageOptionAdditions
AVMediaSelectionOption_MPNowPlayingInfoLanguageOptionAdditions
ItemsPickedEventArgs

Provides data for the ItemsPicked event.

MPChangeLanguageOptionCommandEvent
MPChangePlaybackPositionCommand
MPChangePlaybackPositionCommandEvent
MPChangePlaybackRateCommand

A MPRemoteCommand that alters the playback rate.

MPChangePlaybackRateCommandEvent

Provides the playback rate for a media item.

MPChangeRepeatModeCommand

Holds the current MPRepeatType.

MPChangeRepeatModeCommandEvent

Associates a MPRepeatType and a boolean specifying whether the repeat mode should be preserved.

MPChangeShuffleModeCommand

Holds the current MPShuffleType.

MPChangeShuffleModeCommandEvent

Associates a MPShuffleType and a boolean specifying whether the shuffle mode should be preserved.

MPContentItem

User-meaningful information about an MPMediaItem.

MPErrorCodeExtensions

Extension methods for the MediaPlayer.MPErrorCode enumeration.

MPFeedbackCommand

Additional information for feedback commands defined in MPRemoteCommandCenter.

MPFeedbackCommandEvent

Additional information for the feedback properties defined in MPRemoteCommandCenter.

MPLanguageOptionCharacteristics
MPMediaEntity

Abstract base class for MPMediaItem and MPMediaItemCollection classes.

MPMediaItem

A single piece of media, such as a song or video.

MPMediaItemArtwork

A graphic, such as an album cover, associated with a MPMediaItem.

MPMediaItemCollection

A sorted set of MPMediaItems.

MPMediaLibrary

Represents the synced set of MPMediaItems on a device.

MPMediaLibrary.Notifications

Notification posted by the MPMediaLibrary class.

MPMediaPickerController

A UIViewController that allows the application user to select a media item.

MPMediaPickerControllerDelegate

A delegate object for the MPMediaPickerController class. Application developers can use this deelegate to respond to events relating to media-item selection.

MPMediaPickerControllerDelegate_Extensions

Extension methods to the IMPMediaPickerControllerDelegate interface to support all the methods from the MPMediaPickerControllerDelegate protocol.

MPMediaPlaylist

A playable collection of MPMediaItems.

MPMediaPlaylistCreationMetadata
MPMediaPlaylistProperty

Properties of a MPMediaPlaylist, such as name, attributes, and seed items.

MPMediaPredicate

A base class for types that specify filters for MPMediaQuery queries.

MPMediaPropertyPredicate

A type of MPMediaPredicate that evaluates T:MediaPlayer.MPMediaItemPropertys.

MPMediaQuery

Allows the application developer to programmatically search an MPMediaLibrary by applying zero-or-more MPMediaPredicates and an optional MPMediaGrouping.

MPMediaQuerySection

A subset of the values returned by a MPMediaQuery, as specified by the ItemSections or CollectionSections properties.

MPMovieAccessLog

Logs metrics relating to streaming playback of a movie.

MPMovieAccessLogEvent

Represents a specific metric or event that occurred during network playback of a movie.

MPMovieErrorLog

A log of errors that occurred during network resources.

MPMovieErrorLogEvent

An event documenting a network playback error.

MPMoviePlayerController

A class that manages the playback of a movie from a file or via streaming.

MPMoviePlayerController.Notifications

Notification posted by the MPMoviePlayerController class.

MPMoviePlayerFinishedEventArgs

Provides data for the event.

MPMoviePlayerFullScreenEventArgs

Provides data for the event.

MPMoviePlayerThumbnailEventArgs

Provides data for the event.

MPMoviePlayerTimedMetadataEventArgs

Provides data for the event.

MPMoviePlayerViewController

A subclass of UIViewController that can present and play a movie.

MPMusicPlayerApplicationController

An application controller for changing the currently playing queue.

MPMusicPlayerController

A class that plays media items from the device's MPMediaLibrary.

MPMusicPlayerController.Notifications

Notification posted by the MPMusicPlayerController class.

MPMusicPlayerControllerMutableQueue

A mutable queue of media items for playing.

MPMusicPlayerControllerQueue

An immutable queue of media items for playing..

MPMusicPlayerControllerQueue.Notifications
MPMusicPlayerMediaItemQueueDescriptor

Operates on media player queues.

MPMusicPlayerPlayParameters

Contains a dictionary of Music Kit parameters for items to play.

MPMusicPlayerPlayParametersQueueDescriptor

Class for manipulating start times and play order based on the play parameter results of MusicKit APIs.

MPMusicPlayerQueueDescriptor

Base class for descriptors for store and audio item queues.

MPMusicPlayerStoreQueueDescriptor

Implements modification of media items in a player queue, selecting them by their store identifier.s

MPNowPlayingInfo

Information relating to the MPNowPlayingInfoCenter.

MPNowPlayingInfoCenter

A class that encapsulates data and functions relating to the "now-playing" information displayed on the device lock-screen, the television during AirPlay, or (potentially) on an external accessory such as a dock or car stereo.

MPNowPlayingInfoLanguageOption
MPNowPlayingInfoLanguageOptionGroup
MPPlayableContentDataSource

Provides media metadata information to external media players.

MPPlayableContentDataSource_Extensions

Extension methods to the IMPPlayableContentDataSource interface to support all the methods from the MPPlayableContentDataSource protocol.

MPPlayableContentDelegate

Delegate object providing methods for external media players to send playback commands to the app.

MPPlayableContentDelegate_Extensions

Extension methods to the IMPPlayableContentDelegate interface to support all the methods from the MPPlayableContentDelegate protocol.

MPPlayableContentManager

Controls interactions between the app and external media players.

MPPlayableContentManagerContext
MPRatingCommand

Additional information for rating commands defined in MPRemoteCommandCenter.

MPRatingCommandEvent

Additional information for the rating properties defined in MPRemoteCommandCenter.

MPRemoteCommand

Class that app developers can use to add and remove actions (commands) on targets (players).

MPRemoteCommandCenter

Class that handles events from external media players.

MPRemoteCommandEvent

Class that provides information about a player command.

MPSeekCommandEvent

Additional information for the seek properties defined in MPRemoteCommandCenter.

MPSkipIntervalCommand

Additional information for the skip interval command properties defined in MPRemoteCommandCenter.

MPSkipIntervalCommandEvent

The time interval rate of an external media player.

MPTimedMetadata

Encapsulates timed metadata for use with time-based HTTP media streams.

MPVolumeSettings

Encapsulates functions relating to the display or hiding of volume controls.

MPVolumeView

A UIView that presents a slider control used to set the system output volume..

MPVolumeView.MPVolumeViewAppearance

Appearance class for objects of type MPVolumeView.

MPVolumeView.Notifications

Contains notifications for a MPVolumeView.

NSUserActivity_MediaPlayerAdditions

Interfaces

IMPMediaPickerControllerDelegate

Interface representing the required methods (if any) of the protocol MPMediaPickerControllerDelegate.

IMPMediaPlayback

Interface that, together with the T:MediaPlayer.MPMediaPlayback_Extensions class, comprise the MPMediaPlayback protocol.

IMPPlayableContentDataSource

Interface representing the required methods (if any) of the protocol MPPlayableContentDataSource.

IMPPlayableContentDelegate

Interface representing the required methods (if any) of the protocol MPPlayableContentDelegate.

IMPSystemMusicPlayerController

Protocol for playing videos with the Music app.

Enums

MPChangeLanguageOptionSetting
MPErrorCode

Enumerates error codes in the Media Player domain.

MPMediaGrouping

An enumeration whose values specify various ways in which media can be logically grouped.

MPMediaLibraryAuthorizationStatus

Enumerates the status of the application's permission to access the media library.

MPMediaPlaylistAttribute

An enumeration whose values specify various types of playlist.

MPMediaPredicateComparison

An enumeration whose values specifies a comparison-type to be used with a MPMediaPredicate.

MPMediaType

An enumeration whose values specify various types of media.

MPMovieControlMode

Application developers should not use this deprecated class, but instead use MPMovieControlStyle.

MPMovieControlStyle

An enumeration whose values specify various modes for the ControlStyle property.

MPMovieFinishReason

An enumeration whose values specify various ways a movie may have finished.

MPMovieLoadState

An enumeration whose values reflect a movie's load state. Used in the LoadState property.

MPMovieMediaType

An enumeration that specifies the movie's media types. Used with the MovieMediaTypes property.

MPMoviePlaybackState

An enumeration of possible states in which the MPMoviePlayerController may be. Used with the P:MediaPlayer.MPMovieCotnroller.PlaybackState property.

MPMovieRepeatMode

An enumeration that specifies whether a movie should repeat or not. Used with the RepeatMode property.

MPMovieScalingMode

An enumeration of video scaling modes. Used with the ScalingMode property.

MPMovieSourceType

An enumeration that specifies whether a movie's data is provided by a file or streaming. Used with the SourceType property.

MPMovieTimeOption

An enumeration that specifies which frame to use when generating thumbnails.

MPMusicPlaybackState

An enumeration of states in which the MPMusicPlayerController may be. Used with the PlaybackState property.

MPMusicRepeatMode

An enumeration of music repeat modes. Used with the RepeatMode property.

MPMusicShuffleMode

An enumeration of shuffle modes for use with the ShuffleMode property.

MPNowPlayingInfoLanguageOptionType
MPNowPlayingInfoMediaType
MPNowPlayingPlaybackState
MPRemoteCommandHandlerStatus

Enumerates values that indicate whether a command succeeded, failed, or cannot play the kind of media requested.

MPRepeatType
MPSeekCommandEventType

Enumerates values that indicate whether the command began or ended a seek operation.

MPShuffleType

Delegates

MPMediaItemEnumerator

The delegate to be used as the enumerator argument to EnumerateValues(NSSet, MPMediaItemEnumerator).