Class

AVNavigationMarkersGroup

A set of markers for navigating playback of an audiovisual presentation.

Declaration

class AVNavigationMarkersGroup : NSObject

Overview

The most common form of a navigation markers group is a chapter list; however, you can also provide other sets of markers to allow a user to jump to significant events in the presentation. For example, a “Goals Scored” markers group might summarize key moments in a recorded sporting event. When you associate navigation markers with an AVPlayerItem object you present with an AVPlayerViewController, the user interface provides options for navigating each group.

Topics

Creating a Navigation Marker Group

init(title: String?, timedNavigationMarkers: [AVTimedMetadataGroup])

Initializes a navigation markers group with the specified title and array of timed navigation markers.

init(title: String?, dateRangeNavigationMarkers: [AVDateRangeMetadataGroup])

Initializes a navigation markers group with the specified title and array of date range navigation markers.

Inspecting Navigation Metadata

var title: String?

The name to be presented for the marker group.

var timedNavigationMarkers: [AVTimedMetadataGroup]?

The array of timed navigation markers for which the group provides navigation.

var dateRangeNavigationMarkers: [AVDateRangeMetadataGroup]?

The array of date range navigation markers for which the group provides navigation.

Relationships

Inherits From

Conforms To

See Also

Media Playback

Adopting Picture in Picture in a Standard Player

Add picture-in-picture controls to your player using a player view controller.

Adopting Picture in Picture in a Custom Player

Add picture-in-picture controls to your custom player using a picture-in-picture controller.

Working with Interstitial Content (tvOS)

Present additional content such as legal text, content warnings, or advertisements alongside your main media content.

Using AVKit in iOS

This sample code project demonstrates techniques for tracking AVPlayerViewController presentation state across multiple application scenarios, including being displayed fullscreen, embedded inline, or as Picture in Picture.

Adopting Custom Interactive Overlays, Channel Flipping, and Parental Controls in tvOS Video Playback

This sample demonstrates support for custom interactive overlays, and parental controls, using AVPlayerViewController.

Adding Information to the Info Panel (tvOS)

Add metadata information and navigation markers to the Info panel in Apple TV.

class AVPlayerViewController

An object that displays the video content from a player object along with system-supplied playback controls.

class AVPlayerView

A macOS-only object that displays the video content from a player object along with system-supplied playback controls.

class AVPictureInPictureController

A controller that responds to user-initiated playback of video in a floating, resizable window on iPad.

class AVRoutePickerView

An object that displays controls for picking playback routes.

class AVInterstitialTimeRange

A time range in an audiovisual presentation as interstitial content, such as advertisements or legal notices.