webrtc-group-chat-example icon indicating copy to clipboard operation
webrtc-group-chat-example copied to clipboard

duplicate image

Open parsibox opened this issue 3 years ago • 1 comments

hi i connect with 2 device but i see 3 image on client image

parsibox avatar Aug 19 '21 07:08 parsibox

I think this is happening because the server is relying on the device itself when displaying the streams. To solve this, I've added a control to peer_connection.ontrack so it only runs once. Just create a variable x with a value of 0, create a condition of x == 0 and, if the condition is true, x += 1 and execute the content of the function.

Diegocndd avatar Oct 05 '21 02:10 Diegocndd