webrtc-group-chat-example
webrtc-group-chat-example copied to clipboard
duplicate image
hi
i connect with 2 device but i see 3 image on client
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.