Package-level declarations

Types

Link copied to clipboard
class SrtConnection(scope: CoroutineScope, options: SrtConnection.Options = Options()) : Closeable

Owns one SRT peer connection. connect suspends until a caller connects or a listener accepts a peer. No stream multiplexing or media framing is performed.

Link copied to clipboard
object SrtLogger

Process-wide libsrt logging configuration, shared by all SRT sockets. Functional areas track only changes managed by this logger; native defaults remain enabled until explicitly selected and subsequently removed, as in the Swift logger.

Link copied to clipboard
data class SrtPerformanceData(val bytesSent: Long, val bytesReceived: Long, val sendBufferBytes: Int, val receiveBufferBytes: Int, val roundTripTimeMs: Double, val sendRateMbps: Double, val receiveRateMbps: Double)

Immutable native statistics snapshot. Byte totals include protocol overhead; outgoing totals also include retransmissions. Reading does not reset counters.

Link copied to clipboard
class SrtSocketException(message: String, val errorCode: Int, val rejectReason: Int) : IOException

Native transport failure, captured before thread-local error information changes.

Link copied to clipboard
class SrtStream(context: Context, val connection: SrtConnection) : Stream

Publishes or plays a single-program MPEG-TS stream over connection. Register this stream as a MediaMixer output for capture, or register a StreamView as this stream's output for playback. Codecs/settings and rendering reuse Stream. Supports H.264/H.265 video and ADTS-framed AAC audio; other codecs are rejected.

Link copied to clipboard

Creates MPEG-TS publishing and playback sessions for srt URIs.