PlayerBuilder

class PlayerBuilder(val context: Context)

Creates and configures a 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.

Provides the same functionality as Player() with a more convenient style when used from Java.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun build(): Player

Builds the Player instance with the provided configuration.

Link copied to clipboard
fun configureAnalytics(analyticsConfig: AnalyticsConfig, defaultMetadata: DefaultMetadata = DefaultMetadata()): PlayerBuilder

Configures analytics data collection for the Player.

Link copied to clipboard

Disables analytics for the Player.

Link copied to clipboard

Sets the PlayerConfig to use for the Player. Must not be modified after it was used to create a Player instance.