PeerChannelImpl

class PeerChannelImpl(appContext: Context, networkConfig: PeerNetworkConfig, mediaOption: SoraMediaOption, simulcastEnabled: Boolean = false, dataChannelConfigs: List<Map<String, Any>>? = null, listener: PeerChannel.Listener?, useTracer: Boolean = false) : PeerChannel

Constructors

Link copied to clipboard
constructor(appContext: Context, networkConfig: PeerNetworkConfig, mediaOption: SoraMediaOption, simulcastEnabled: Boolean = false, dataChannelConfigs: List<Map<String, Any>>? = null, listener: PeerChannel.Listener?, useTracer: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun connectionState(): PeerConnection.PeerConnectionState?
Link copied to clipboard
open override fun disconnect(disconnectReason: SoraDisconnectReason?)
Link copied to clipboard
open override fun getStats(handler: (RTCStatsReport?) -> Unit)
open override fun getStats(statsCollectorCallback: RTCStatsCollectorCallback)
Link copied to clipboard
open override fun handleInitialRemoteOffer(offer: String, mid: Map<String, String>?, encodings: List<Encoding>?): Single<SessionDescription>
Link copied to clipboard
open override fun handleUpdatedRemoteOffer(offer: String): Single<SessionDescription>
Link copied to clipboard
open override fun requestClientOfferSdp(): Single<Result<SessionDescription>>
Link copied to clipboard
open override fun sendDisconnect(dataChannel: DataChannel, disconnectReason: SoraDisconnectReason)
Link copied to clipboard
open override fun sendReAnswer(dataChannel: DataChannel, description: String)
Link copied to clipboard
open override fun sendStats(dataChannel: DataChannel, report: RTCStatsReport)
Link copied to clipboard
open override fun unzipBufferIfNeeded(label: String, buffer: ByteBuffer): ByteBuffer
Link copied to clipboard
open override fun zipBufferIfNeeded(label: String, buffer: ByteBuffer): ByteBuffer