Contents

init(player:videoOverlay:)

Creates a video-player user interface for the player object.

Declaration

@MainActor @preconcurrency init(player: AVPlayer?, @ViewBuilder videoOverlay: () -> VideoOverlay)

Parameters

  • player:

    The player that plays the audiovisual content.

  • videoOverlay:

    A closure that returns a VideoOverlay view to present over the player’s video content. This view is fully interactive, but is placed below the system-provided playback controls, and only receives unhandled events.

See Also

Creating a video player