addRemoteTrack

suspend fun addRemoteTrack(kind: TrackType)

Dynamically adds a new media track to the subscriber, which allows projecting another source. The method locally renegotiates Session Description Protocol (SDP).

Parameters

kind

The type of the track, either video or audio.

Throws

An exception thrown in the case of encountering issues during execution of the method.