Contents

AVPlayerView

A view that displays content from a player and presents a native user interface to control playback.

Declaration

class AVPlayerView

Mentioned in

Overview

The player view supports several controls styles, ranging from no controls to controls matching the look of QuickTime Player. This makes it easy for you to tailor the presentation to best match your use of the player view. Regardless of the selected controls style, the player view always supports the following standard set of keyboard shortcuts to control playback:

  • The Space bar plays and pauses playback.

  • The right and left arrow keys step frame-by-frame through the video.

  • JKL navigation:

  • The J key rewinds. Press it multiple times to cycle through rewind speeds.

  • The K key stops playback.

  • The L key fast-forwards. Press it multiple times to cycle through fast-forward speeds.

The player view also makes it simple to add trimming capabilities to your player. Call the view’s beginTrimming(completionHandler:) method to present a trimming UI that matches the QuickTime Player interface.

Topics

Customizing the user interface

Customizing the video presentation

Configuring frame analysis

Configuring the playback speed

Configuring picture in picture

Magnifying video

Displaying the chapter and title

Trimming media

Setting the player object

Setting the delegate object

High dynamic range

See Also

macOS playback and capture