onTrackPublished

open fun onTrackPublished(publication: LocalTrackPublication, participant: LocalParticipant)

When a new track is published by the local participant.

open fun onTrackPublished(publication: RemoteTrackPublication, participant: RemoteParticipant)

When a new track is published to room after the local participant has joined.

It will not fire for tracks that are already published