cloudflare / orange

https://demo.orange.cloudflare.dev/
Other
1.56k stars 215 forks source link

Race condition when user joins the room before tracks are replaced. #87

Open phpb-com opened 3 months ago

phpb-com commented 3 months ago

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

phpb-com commented 3 months ago

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.