connect

fun connect(playerConfig: PlayerConfig? = null, analyticsConfig: AnalyticsConfig? = null, onConnected: (UniPlayer) -> Unit)

Starts and binds to the service.

Parameters

playerConfig

Passed on first start to create the UniPlayer. Ignored on subsequent binds (e.g. after a config change); falls back to BVPlaybackService.onCreatePlayerConfig if null.

analyticsConfig

Passed on first start to enable analytics tracking. Ignored on subsequent binds; falls back to BVPlaybackService.onCreateAnalyticsConfig if null.

onConnected

Invoked once binding succeeds, with the UniPlayer instance.