onAddTrack

open override fun onAddTrack(receiver: RtpReceiver?, mediaStreams: Array<out MediaStream>?)

Triggered whenever there's a new MediaStream or MediaStreamTrack that's been added to the call. It contains all audio and video tracks for a given session.

Parameters

receiver

The receiver of tracks.

mediaStreams

The streams that were added containing their appropriate tracks.