FishjamClientListener

Functions

Link copied to clipboard
abstract fun onAuthError()

Emitted when authentication fails

Link copied to clipboard
abstract fun onAuthSuccess()

Emitted when authentication is successful

Link copied to clipboard
open fun onBandwidthEstimationChanged(estimation: Long)

Called every time the server estimates client's bandwidth.

Link copied to clipboard
open fun onDisconnected()

Emitted when the connection is closed

Link copied to clipboard
abstract fun onJoined(peerID: String, peersInRoom: List<Peer>)

Emitted when local user is connected to fishjam.

Link copied to clipboard
abstract fun onJoinError(metadata: Any)

Emitted when there was an error while connecting to the fishjam.

Link copied to clipboard
abstract fun onPeerJoined(peer: Peer)

Called each time new peer joins the room.

Link copied to clipboard
abstract fun onPeerLeft(peer: Peer)

Called each time peer leaves the room.

Link copied to clipboard
abstract fun onPeerUpdated(peer: Peer)

Called each time peer has its metadata updated.

Link copied to clipboard
open fun onSocketClose(code: Int, reason: String)

Emitted when the websocket connection is closed

Link copied to clipboard
open fun onSocketError(t: Throwable, response: Response?)

Emitted when occurs an error in the websocket connection

Link copied to clipboard
open fun onSocketOpen()

Emitted when the websocket connection is opened

Link copied to clipboard
open fun onTrackAdded(ctx: TrackContext)

Called each time the peer which was already in the room, adds new track. Fields track and stream will be set to null. These fields will be set to non-null value in {@link FishjamClientListener.onTrackReady}

Link copied to clipboard
abstract fun onTrackReady(ctx: TrackContext)

Called when data in a new track arrives.

Link copied to clipboard
abstract fun onTrackRemoved(ctx: TrackContext)

Called when some track will no longer be sent.

Link copied to clipboard

Called each time peer has its track metadata updated.