Overview
With v2.51.0
we modernize our SDK which requires the type BitmovinPlayer
being renamed to Player
to avoid a known Swift limitation due to name collision with the module name.
The steps below are only needed when you are using our Player from Swift files. For Objective-C usages nothing changes.
The following steps are recommended to make the update to v2.51.0
or higher from your current version of the Bitmovin iOS/tvOS Player SDK as smooth as possible.
Option 1: Adding a typelias (recommended for existing integrations, less effort)
As we renamed the type BitmovinPlayer
to Player
when used from any Swift class, we recommend creating a top-level typealias
in any of your Swift files in your target.
1typealias BitmovinPlayer = Player
That ensures that you can continue using BitmovinPlayer
wherever you want without the need to rename it.
Option 2: Renaming the type in your project (for new integrations)
Before v2.51.0
the initialization looks like:
1var player: BitmovinPlayer = BitmovinPlayer()
Starting with v2.51.0
the initialization looks like:
1var player: Player = Player()