create

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

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.