create

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

Deprecated

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.


fun Source.Companion.create(sourceConfig: SourceConfig, sourceMetadata: SourceMetadata = SourceMetadata()): Source

Deprecated

Use the `Source` factory function instead.

Replace with

import com.bitmovin.player.api.source.Source
Source(sourceConfig, AnalyticsSourceConfig.Enabled(sourceMetadata))

Creates a Source configured via the provided SourceConfig, with analytics metadata configured via the provided sourceMetadata.

For further interaction with source analytics the SourceAnalyticsApi can be use.