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
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.
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
Content copied to clipboard
Source(sourceConfig, AnalyticsSourceConfig.Enabled(sourceMetadata))
Content copied to clipboard
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.