[javascript] Select a participant programmaticly in stage view

How can I select a participant programmaticly in stage view using javascript?

APP.UI.clickOnVideo(ID) works for old versions but the current stable has no APP.UI.clickOnVideo.

You better stick to the iframeAPI :slight_smile:
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe#pinparticipant

Which executes: jitsi-meet/API.js at 543f273792a6e7a0e277db2c017ad8d0c3108635 · jitsi/jitsi-meet · GitHub

Which should be:

APP.store.dispatch({
        type: 'PIN_PARTICIPANT',
        participant: { id });

or
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe#setlargevideoparticipant-1
This one executes: jitsi-meet/API.js at 543f273792a6e7a0e277db2c017ad8d0c3108635 · jitsi/jitsi-meet · GitHub

1 Like

Thank you @damencho. It works now.