[object Object] Icon

Encoding
Learn how to create, start, manage and modify Encodings

[object Object] Icon

Player
Learn how to create, start, manage and modify Players

[object Object] Icon

Analytics
Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Tue Aug 18 2020

Migration Guide for API changes in iOS/tvOS player SDK v2.51.0

Tue Aug 18 2020

OverviewLink Icon

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.

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)Link Icon

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()

Give us feedback