sak1b

up

Dec 12th, 2021
1,127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (existingParticipant.video !== p.video) {
  2.             updateMqttParticipantVideoActionCreator({id: p.id, video: p.video});
  3.             existingMqttParticipantsMap.set(p.id,p);
  4.           }
  5. //take the following
  6.           const videoStream = publisherStreamMap.get(p.publisher_id);
  7.           if((existingParticipant.videoRef === null && videoStream)) // toDo: Add more checks here
  8.           {
  9.             console.log('Adding stream from map: ', p.publisher_id, videoStream);
  10.             updateMqttParticipantStreamActionCreator({publisher_id: p.publisher_id, stream: videoStream});
  11.             p.videoRef = videoStream;
  12.             existingMqttParticipantsMap.set(p.id,p);
  13.           }
Advertisement
Add Comment
Please, Sign In to add comment