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
Content copied to clipboard
Player(context, playerConfig, AnalyticsPlayerConfig.Enabled(analyticsConfig, defaultMetadata))
Content copied to clipboard
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.