monitoring
Make the monitoring logs all events to Logcat, using the default config.
Parameters
type
fun monitoring(endpointUrl: String, httpClient: HttpClient? = null, coroutineScope: CoroutineScope? = null)
Make the monitoring sends all events to a remote server.
Parameters
endpointUrl
The endpoint receiving monitoring messages.
httpClient
The HttpClient to use to send the events.
coroutineScope
The scope used to send the monitoring message.
fun <Config, Factory : MonitoringMessageHandlerFactory<Config>> monitoring(type: MonitoringMessageHandlerType<Config, Factory>, createConfig: MonitoringConfigFactory<Config>.() -> Config)
Configure the monitoring for this player.
Parameters
Config
The type of the config to create.
Factory
The type of the MonitoringMessageHandlerFactory.
type
The type of MonitoringMessageHandler to use.
createConfig
The configuration builder to create the MonitoringMessageHandler.