monitoring

fun monitoring(type: Logcat)

Logs all monitoring events to Logcat.

Parameters

type

fun monitoring(endpointUrl: String, okHttpClient: OkHttpClient? = null, coroutineScope: CoroutineScope? = null)

Configures the monitoring to send all events to a remote server.

Parameters

endpointUrl

The URL of the endpoint responsible for receiving monitoring messages.

okHttpClient

The OkHttpClient instance used for transmitting events to the endpoint.

coroutineScope

The CoroutineScope which manages the coroutine responsible for sending monitoring messages.


Configures monitoring for this player.

Parameters

Config

The type of the configuration object used to setup the monitoring handler.

Factory

The type of the MonitoringMessageHandlerFactory used to create the monitoring handler.

type

The type of MonitoringMessageHandler to create.

createConfig

A lambda that returns a configuration of type Config.