components-js
                                
                                 components-js copied to clipboard
                                
                                    components-js copied to clipboard
                            
                            
                            
                        Cannot share camera after screen sharing
Select which package(s) are affected
@livekit/components-react
Describe the bug
What I'm expecting
Participant A enters a room, shares the screen and enables the camera (a participant B is already in the room). Participant B sees the screen shared AND the camera.
What happens instead
Participant A enters a room, shares the screen and enables the camera (a participant B is already in the room). Participant B sees the screen shared but NOT the camera.
Reproduction
Reproduced with the VideoConference component.
- Participant A enters a room.
- Participant B enters a room.
- Participant A shares the screen.
- Participant B can see the screen shared.
- Participant A enables the camera.
- Participant B cannot see the camera.
Logs
No response
System Info
"@livekit/components-react": "2.0.3"
"livekit-client": "2.0.2"
Although it didn't work on previous versions.
Severity
serious, but I can work around it
Additional Information
No response
Reproduced with the VideoConference component.
I just tried this on meet.livekit.io and following your repro steps. And B can see the camera of A.
Can you reproduce this there as well? If so, please post logs.
What is the browser and the version?
Participant A: Firefox 124 Participant B: Chrome 122.0.6261.129
Reproduced on meet.livekit.io. It doesn't happen if the participant B (Chrome) is the one who shares. Seems an issue with Firefox.
thank you, this apparently will have to be fixed in pion, here's the issue tracking it https://github.com/pion/webrtc/pull/2107