RtmpRawMetrics

Provides an access to internal RTMP metrics APIs.

Properties

Link copied to clipboard
val RtmpRawMetrics.rtmpMetrics: RtmpMetrics

Returns the RtmpMetrics if the client is available, otherwise RtmpMetrics.ZERO.

Link copied to clipboard
val rtmpMetricsOrNull: RtmpMetrics?

Returns the RtmpMetrics if the client is available, otherwise null.

Functions

Link copied to clipboard
suspend fun rtt(): Duration

Computes the round trip time (RTT) to the RTMP server using a ping request.

Link copied to clipboard
suspend fun writePing(): UserControl

Writes a ping request to the server and awaits the response.