Package-level declarations

Types

Link copied to clipboard
class DerivedStateFlow<T>(getValue: () -> T, flow: Flow<T>) : StateFlow<T>

Does not produce the same value in a raw, so respect "distinct until changed emissions" https://github.com/Kotlin/kotlinx.coroutines/issues/2631#issuecomment-870565860

Link copied to clipboard
data class LatencyResult(val latencyUrl: String, val measurements: List<Float> = emptyList(), val average: Double = 100.0, val failed: Throwable? = null)
Link copied to clipboard
data class MediaStream(val index: Int, var codecs: List<String>, val line: String)
Link copied to clipboard
class MinimalSdpParser(var sdp: String)

A middle ground between a regex based approach vs a full parser

Link copied to clipboard
data class RtpMapAttribute(val index: Int, val number: String, val codec: String, val line: String)
Link copied to clipboard
data class SdpBandwidth(val type: String, val limit: String)
Link copied to clipboard
data class SdpBfcpconfid(val value: String)
Link copied to clipboard
data class SdpBfcpfloorctrl(val value: String)
Link copied to clipboard
data class SdpBfcpfloorid(val id: String, val mStream: String)
Link copied to clipboard
data class SdpBfcpuserid(val value: String)
Link copied to clipboard
data class SdpBundleonly(val value: String)
Link copied to clipboard
data class SdpCandidates(val foundation: String, val component: Long, val transport: String, val priority: Long, val ip: String, val port: Long, val type: String, val raddr: String?, val rport: Long?, val tcptype: String?, val generation: Long?, val networkId: Long?, val networkCost: Long?)
Link copied to clipboard
data class SdpConnection(val version: Long, val ip: String)
Link copied to clipboard
data class SdpConnectiontype(val value: String)
Link copied to clipboard
data class SdpContent(val value: String)
Link copied to clipboard
data class SdpControl(val value: String)
Link copied to clipboard
data class SdpCrypto(val id: Long, val suite: String, val config: String, val sessionConfig: String?)
Link copied to clipboard
data class SdpDescription(val value: String)
Link copied to clipboard
data class SdpDirection(val value: String)
Link copied to clipboard
data class SdpEmail(val value: String)
Link copied to clipboard
data class SdpEndofcandidates(val value: String)
Link copied to clipboard
data class SdpExt(val value: Long, val direction: String?, val encryptUri: String?, val uri: String, val config: String?)
Link copied to clipboard
data class SdpExtmapallowmixed(val value: String)
Link copied to clipboard
data class SdpFingerprint(val type: String, val hash: String)
Link copied to clipboard
data class SdpFmtp(val payload: Long, val config: String)
Link copied to clipboard
data class SdpFramerate(val value: Long)
Link copied to clipboard
object SdpGrammar
Link copied to clipboard
data class SdpGroups(val type: String, val mids: String)
Link copied to clipboard
data class SdpIcelite(val value: String)
Link copied to clipboard
data class SdpIceoptions(val value: String)
Link copied to clipboard
data class SdpIcepwd(val value: String)
Link copied to clipboard
data class SdpIceufrag(val value: String)
Link copied to clipboard
data class SdpImageattrs(val pt: String)
Link copied to clipboard
data class SdpInvalid(val value: String)
Link copied to clipboard
data class SdpKeywords(val value: String)
Link copied to clipboard
data class SdpLabel(val value: String)
Link copied to clipboard
data class SdpMaxmessagesize(val value: Long)
Link copied to clipboard
data class SdpMaxptime(val value: Long)
Link copied to clipboard
class SdpMedia
Link copied to clipboard
data class SdpMediaclk(val id: String)
Link copied to clipboard
data class SdpMid(val value: String)
Link copied to clipboard
data class SdpMline(val type: String, val port: Long, val protocol: String, val payloads: String)
Link copied to clipboard
data class SdpMsid(val value: String)
Link copied to clipboard
data class SdpMsidsemantic(val semantic: String, val token: String)
Link copied to clipboard
data class SdpName(val value: String)
Link copied to clipboard
data class SdpOrigin(val username: String, val sessionId: Long, val sessionVersion: Long, val netType: String, val ipVer: Long, val address: String)
Link copied to clipboard
data class SdpPhone(val value: String)
Link copied to clipboard
data class SdpPtime(val value: Long)
Link copied to clipboard
data class SdpRemotecandidates(val value: String)
Link copied to clipboard
data class SdpRepeats(val value: String)
Link copied to clipboard
data class SdpRids(val id: String)
Link copied to clipboard
data class SdpRtcp(val port: Long, val netType: String?, val ipVer: Long?, val address: String?)
Link copied to clipboard
data class SdpRtcpfb(val payload: String, val type: String, val subtype: String?)
Link copied to clipboard
data class SdpRtcpfbtrrint(val payload: String, val value: Long)
Link copied to clipboard
data class SdpRtcpmux(val value: String)
Link copied to clipboard
data class SdpRtcprsize(val value: String)
Link copied to clipboard
data class SdpRtp(val payload: Long, val codec: String, val rate: Long?, val encoding: String?)
Link copied to clipboard
data class SdpSctpmap(val sctpmapNumber: String)
Link copied to clipboard
data class SdpSctpport(val value: Long)
Link copied to clipboard
Link copied to clipboard
data class SdpSetup(val value: String)
Link copied to clipboard
data class SdpSimulcast(val dir1: String)
Link copied to clipboard
data class SdpSimulcast03(val value: String)
Link copied to clipboard
data class SdpSourcefilter(val filterMode: String, val netType: String, val addressTypes: String, val destAddress: String, val srcList: String)
Link copied to clipboard
data class SdpSsrcgroups(val semantics: String, val ssrcs: String)
Link copied to clipboard
data class SdpSsrcs(val id: String, val attribute: String?, val value: String?)
Link copied to clipboard
data class SdpTimezones(val value: String)
Link copied to clipboard
data class SdpTiming(val start: Long, val stop: Long)
Link copied to clipboard
data class SdpTsrefclocks(val clksrc: String)
Link copied to clipboard
data class SdpUri(val value: String)
Link copied to clipboard
data class SdpVersion(val value: Long)

This is a Kotlin port of the original (MIT licensed) located at https://github.com/clux/sdp-transform. This port is from: https://github.com/ggarber/sdpparser

Link copied to clipboard
data class SdpXgoogleflag(val value: String)

Inherited properties

Link copied to clipboard

Returns true if the noise cancellation mode is "auto-on".

Link copied to clipboard

Returns true if the noise cancellation mode is "available".

Link copied to clipboard

Returns true if the noise cancellation mode is "disabled".

Link copied to clipboard

Returns true if the noise cancellation mode is "auto-on" or "available".

Functions

Link copied to clipboard
fun <T1, T2, R> combineStates(flow: StateFlow<T1>, flow2: StateFlow<T2>, transform: (a: T1, b: T2) -> R): StateFlow<R>
Link copied to clipboard

Calculates the latency to ping the server multiple times.

Link copied to clipboard
fun mangleSdpUtil(sdp: SessionDescription, enableRed: Boolean = true, enableDtx: Boolean = true, enableVp8: Boolean = true): SessionDescription

Enabling DTX or RED requires mangling the SDP a bit

Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T1, R> StateFlow<T1>.mapState(transform: (a: T1) -> R): StateFlow<R>
Link copied to clipboard
Link copied to clipboard
inline fun <T> List<T>.updateValue(predicate: (T) -> Boolean, transformer: (T) -> T): List<T>