create

fun Player.Companion.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.


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

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.