create

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

Deprecated

From Java use the `SourceBuilder` instead. From Kotlin 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. Provides the same functionality as Source.create with a more convenient style when used from Java.