Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (existingParticipant.video !== p.video) {
- updateMqttParticipantVideoActionCreator({id: p.id, video: p.video});
- existingMqttParticipantsMap.set(p.id,p);
- }
- //take the following
- const videoStream = publisherStreamMap.get(p.publisher_id);
- if((existingParticipant.videoRef === null && videoStream)) // toDo: Add more checks here
- {
- console.log('Adding stream from map: ', p.publisher_id, videoStream);
- updateMqttParticipantStreamActionCreator({publisher_id: p.publisher_id, stream: videoStream});
- p.videoRef = videoStream;
- existingMqttParticipantsMap.set(p.id,p);
- }
Advertisement
Add Comment
Please, Sign In to add comment