Callback Integration
To receive event logs, integrate the Playback Event callback function in the Player SDK by attaching the logEvent
handler:
val player = UniPlayer.Builder(
... ,
PlayerConfig(
playLogger = object : PlayLogger {
override fun onLogEvent(logEvent: LogEvent, properties: Map<LogProperty, Any>) {
Log.d(TAG, "event: ${logEvent.name}")
Log.d(TAG, "properties: ${properties.mapKeys { it.key.name }}")
}
},
...
)
)