TechnologiesVideo, Photos & Camera

AVKit

iOSmacOStvOSwatchOSvisionOS

AVKit plays and presents audiovisual media with the system's standard playback interface, so you display video without building transport controls yourself. Use AVPlayerViewController to present a player with the full playback UI, adopt AVPictureInPictureController to continue playback in a floating window, and configure playback rates through AVPlaybackSpeed. The framework also surfaces presentation and analysis affordances such as AVPictureInPictureVideoCallViewController, AVLegibleMediaOptionsMenuController, AVDisplayManager, and AVViewport, and reports failures with AVKitError across iOS, macOS, tvOS, watchOS, and visionOS.

Player Presentation 3

View controllers that present audiovisual media with the system's standard playback interface.

  • Cl
    AVPlayerViewControlleriOS 8.0+
    @class AVPlayerViewController
  • Pr
    AVPlayerViewControllerDelegateiOS 9.0+
    @protocol AVPlayerViewControllerDelegate
  • Cl
    AVPlaybackSpeediOS 16.0+
    @class AVPlaybackSpeed

Picture in Picture 4

Controllers and delegates for continuing video playback in a floating window.

  • Cl
    AVPictureInPictureControlleriOS 9.0+
    @class AVPictureInPictureController
  • Pr
    AVPictureInPictureControllerDelegateiOS 9.0+
    @protocol AVPictureInPictureControllerDelegate
  • Pr
    AVPictureInPictureSampleBufferPlaybackDelegateiOS 15.0+
    @protocol AVPictureInPictureSampleBufferPlaybackDelegate
  • Cl
    AVPictureInPictureVideoCallViewControlleriOS 15.0+
    @class AVPictureInPictureVideoCallViewController

Display and Viewport Management 3

Types that manage display modes and the on-screen presentation region for played media.

  • Cl
    AVDisplayManagervisionOS 1.0+
    An object that manages a display's mode for optimal playback of audiovisual content.
  • Cl
    AVViewport
    @class AVViewport
  • Cl
    AVPortalViewport
    @class AVPortalViewport

Media Options and Analysis 5

Controllers and types for presenting legible media menus and analyzing video frames.

  • Cl
    AVLegibleMediaOptionsMenuControlleriOS 26.4+
    @class AVLegibleMediaOptionsMenuController
  • St
    AVLegibleMediaOptionsMenuStateiOS 26.4+
    @struct AVLegibleMediaOptionsMenuState
  • En
    AVLegibleMediaOptionsMenuTypeiOS 26.4+
    @enum AVLegibleMediaOptionsMenuType
  • St
    AVVideoFrameAnalysisTypeiOS 17.0+
    @enum AVVideoFrameAnalysisType
  • Cl
    AVInterstitialTimeRangeiOS 16.0+
    @class AVInterstitialTimeRange

Errors 1

The error type that AVKit reports when playback or presentation fails.

  • St
    AVKitErroriOS 9.0+
    A structure that describes errors AVKit reports during playback or presentation.

Classes 4

  • Cl
    AVContentSelectionViewController
    A view controller for providing additional UI to the multiview experience.
  • Cl
    AVExperienceController
    An object for controlling video experiences.
  • Cl
    AVGroupExperienceCoordinator
  • Cl
    AVMultiviewManager
    An object to manage viewing multiple videos at once.

Structures 1

  • St
    VideoPlayeriOS 14.0+
    A view for showing the audiovisual contents of an `AVPlayer`

Extends 4

AVAudioSessionAVPlayerItemUIWindowView
← Video, Photos & Camera