Bitmovin <3 MultiView

We’re thrilled to announce the release of the first sample of MultiView for iOS, tvOS and visionOS! :tada: It’s now available in our public Samples repo and is designed to seamlessly integrate into your SwiftUI application.

The MultiView handling is encapsulated into a separate Swift Package that makes it easy to integrate as-is into your Application.

Key Features

  • Encapsulated Swift Package: Easy to add MultiView to your project.
  • Customizable and Flexible: Retain control over your player instance and adapt the package to your needs.
  • Simple Integration: The public API allows for quick setup of MultiView for up to 5 players.
  • Open Source: Missing something? Simply extend the integration.

MultiViewFramed-ezgif.com-crop

How to Get Started

Explore the sample implementation in our public repo and try it out today. Alternatively, you can copy the BitmovinPlayerMultiView package directly to your own application.

The package has two main API entry points:

  1. MultiViewCoordinator - Manages the adding and removing of Player instances.
@StateObject var multiViewCoordinator = MultiViewCoordinator()  
  1. MultiViewPlayerView - Handles rendering.
MultiViewPlayerView(multiViewCoordinator: multiViewCoordinator)  

For best results, we recommend encapsulating Player creation and Source loading in a separate view model owned by your application. Check out the example MultiViewViewModel in the sample project for inspiration.

What’s Next?

We’re just getting started! :rocket: Expect ongoing updates to the sample project, including additional features and enhancements to make MultiView even better.

Join the Discussion

We’d love to hear your thoughts and answer your questions. Join the conversation in our community and let us know how MultiView fits into your projects!

Happy MultiView’ing! :partying_face:

5 Likes