orange
orange copied to clipboard
Race condition when user joins the room before tracks are replaced.
If user joins the room before the below operation is complete, existing peers in the room will get "Error: Missing Track Info". I am not sure how to delay the user or to signal to the room to try and reacquire the tracks.
https://github.com/cloudflare/orange/blob/49cb2ccba6e76b4b1015de9546d3eb46779a7885/app/utils/rxjs/RxjsPeer.client.ts#L344
If you need further details, please let me know. One way I could see it happen was when I try to connect from the iPhone and join the room too quickly. If use remains on the initial pre-join screen for 3-5 seconds, the issues is not there.