Contents

AVViewport

An object that provides configuration options for how the player displays content in different viewing contexts.

Declaration

class AVViewport

Overview

Use this object to customize the visual presentation of your content, as the following example shows:

let portalViewport = AVPortalViewport()
portalViewport.aspectRatio = 2.39
playerViewController.viewport.portal = portalViewport

Topics

Configuring the portal viewport

See Also

Immersive and multiview media