Bidirectional video streaming issues #2

已關閉
建立於 2023-02-06 22:41:20 +00:00kirsle · 1 comment
擁有者

There is currently a bug getting video streams to work both ways:

  1. User A starts their camera.
  2. User B opens A's camera - this much works OK.
  3. User A opens B's camera:
    • For user B, they see A's camera freeze - the connection was cut off.
    • User A can see user B's camera in motion
  4. User B tries to re-open A's camera:
    • It happens vice versa: user A sees B's camera freeze, while B can see A's camera normally.

The root cause seems to be in overwriting the WebRTC connection in the front-end code: we keep a map of usernames to WebRTC sockets and the socket is overwritten when one user (who was already streaming video to the other) opens a new connection to receive video from the other.

The frontend should either handle loading the "read" and "write" sockets separately or re-negotiate the one socket to send video both directions.

There is currently a bug getting video streams to work both ways: 1. User A starts their camera. 2. User B opens A's camera - this much works OK. 3. User A opens B's camera: * For user B, they see A's camera freeze - the connection was cut off. * User A can see user B's camera in motion 4. User B tries to re-open A's camera: * It happens vice versa: user A sees B's camera freeze, while B can see A's camera normally. The root cause seems to be in overwriting the WebRTC connection in the front-end code: we keep a map of usernames to WebRTC sockets and the socket is overwritten when one user (who was already streaming video _to_ the other) opens a new connection to receive video _from_ the other. The frontend should either handle loading the "read" and "write" sockets separately or re-negotiate the one socket to send video both directions.
kirsle 加入了
bug
標籤 2023-02-06 22:41:31 +00:00
作者
擁有者

Resolved in 5456c88e70

Resolved in 5456c88e703959189d35468cc304adf6eafa07b3
kirsle 關閉了這個問題 2023-02-09 21:14:14 +00:00
登入 才能加入這對話。
未選擇里程碑
未選擇專案
沒有負責人
1 參與者
通知
截止日期
截止日期無效或超出範圍,請使用「yyyy-mm-dd」的格式。

未設定截止日期。

先決條件

未設定先決條件。

參考: apps/BareRTC#2
No description provided.