livekit / components-js

Official open source React components and examples for building with LiveKit.
https://livekit.io
Apache License 2.0
147 stars 64 forks source link

Cannot share camera after screen sharing #804

Closed adcimon closed 1 month ago

adcimon commented 5 months ago

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.

  1. Participant A enters a room.
  2. Participant B enters a room.
  3. Participant A shares the screen.
  4. Participant B can see the screen shared.
  5. Participant A enables the camera.
  6. 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

lukasIO commented 5 months ago

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.

davidzhao commented 5 months ago

What is the browser and the version?

adcimon commented 5 months ago

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.

lukasIO commented 5 months ago

thank you, this apparently will have to be fixed in pion, here's the issue tracking it https://github.com/pion/webrtc/pull/2107