addEventListener

Starts delivering this participant's stream and state events to listener.

Streams already enabled are replayed to listener immediately, on the calling thread, so a listener attached late still gets its tile. A participant can have several listeners; each gets its own replay.

Parameters

listener

kept until removeEventListener or removeAllEventListeners. Exceptions it throws are swallowed, so they will not break other listeners — or reach you.