IncomingDataTrackManager

Properties

Link copied to clipboard
abstract val events: EventListenable<IncomingDataTrackEvent>

Publication and unpublication events from the UniFFI remote manager.

Functions

Link copied to clipboard
abstract fun close()

Shuts down the underlying UniFFI manager. A subsequent handle call creates a new one.

Link copied to clipboard
abstract fun handlePacketReceived(packet: ByteArray)

Forwards a packet received on the _data_track data channel to the UniFFI manager.

Link copied to clipboard
abstract fun handleSfuJoinResponse(responseBytes: ByteArray)

Forwards a serialized livekit.LivekitRtc.SignalResponse containing a JoinResponse to the UniFFI manager so pre-existing remote data tracks are discovered. Pass the websocket bytes as received; re-encoding a decoded copy can drop newer fields.

Link copied to clipboard
abstract fun handleSfuParticipantUpdate(responseBytes: ByteArray, localParticipantIdentity: String)

Forwards a serialized livekit.LivekitRtc.SignalResponse containing a ParticipantUpdate to the UniFFI manager. Pass the websocket bytes as received.

Link copied to clipboard
abstract fun handleSubscriberHandles(responseBytes: ByteArray)

Forwards a serialized livekit.LivekitRtc.SignalResponse containing DataTrackSubscriberHandles to the UniFFI manager. Pass the websocket bytes as received.

Link copied to clipboard

Resend subscription updates after reconnect so the SFU re-issues subscriber handles.

Link copied to clipboard

Returns a snapshot of the remote data tracks currently known to the UniFFI manager, including those whose publisher is not yet in the room.