create

fun create(context: Context, playerConfig: PlayerConfig = PlayerConfig(), analyticsConfig: AnalyticsConfig, defaultMetadata: DefaultMetadata = DefaultMetadata()): Player

Deprecated

From Java use the `PlayerBuilder` instead. From Kotlin use the `Player` factory function instead.

Replace with

import com.bitmovin.player.api.Player
Player(context, playerConfig, AnalyticsPlayerConfig.Enabled(analyticsConfig, defaultMetadata))

Creates an analytics enabled player instance. The Player is configured via the provided playerConfig, while analytics is configured via the provided analyticsConfig.

For further interaction with analytics the AnalyticsApi as well as the SourceAnalyticsApi can be use. Provides the same functionality as Player.create with a more convenient style when used from Java.