Zoom video sdk make host full screen

Hi @Lido as I descrbied in this answer: On the user side, I want to show only the host's video, not any participants or the user themselves - #4 by ekaansh.zoom

You get a 'peer-video-state-change' event from the Video SDK for each user. You can decide based on the event which video to render. For example: if you have 7 users with IDs 1-7, if we assume user 1 is the host. Then you can check something like this:

client.on('peer-video-state-change', (payload) => {
  if (payload.userId === 1) {
  // only if the userId is of the host then render the video
  if (payload.action === 'Start') {
    // a user turned on their video, render it
    stream.attachVideo(payload.userId, 3).then((userVideo) => {
      document.querySelector('video-player-container').appendChild(userVideo)
    })
  } 
...
})

For prioritized assistance, you can take advantage of Premier Developer Support plans.