Player

fun Player(context: Context, playerConfig: PlayerConfig = PlayerConfig(), analyticsConfig: AnalyticsPlayerConfig = AnalyticsPlayerConfig.Enabled()): Player

Creates and configures a Player instance.

The AnalyticsPlayerConfig can be used to customize the analytics collection, or disable analytics support for the Player instance.

Note:

If you have manually configured Bitmovin Analytics using the BitmovinAnalyticsCollector, either migrate to the bundled collector or disable bundled analytics by passing AnalyticsPlayerConfig.Disabled to analyticsConfig.

Using both, the bundled and the manually configured collector will result in a crash.