VideoPlayerView

@MainActor
public struct VideoPlayerView : View

A view that provides the Bitmovin Player UI and default UI handling to an attached Player instance. This view needs a Player instance to work properly. This Player can be passed to the initializer.

  • Creates a PlayerView

    Declaration

    Swift

    @MainActor
    public init( // swiftlint:disable:this type_contents_order
        player: Player,
        playerViewConfig: PlayerViewConfig = PlayerViewConfig()
    )

    Parameters

    player

    The Player instance which will be associated with this PlayerView instance

    playerViewConfig

    An optional configuration object for the PlayerView instance

  • The content and behavior of the view.

    Declaration

    Swift

    @MainActor
    public var body: some View { get }