Unwatch events are received at unusual times #52

Open
opened 2025-05-30 03:51:55 +00:00 by kirsle · 0 comments
Owner

A user reported that the Unwatch sound effect plays at unusual times, including when his camera isn't even currently online.

The only place that SFX plays is when an unwatch message is received from the server. It may be other chat users are sending unwatch events too aggressively.

As of 4179cba30a debug messages will be logged to the "Debug Log" channel (type the command /toggle-debug-settings to access that channel). The SFX plays when an unwatch from a username is received, and logs relevant info:

  • Which username sent you the unwatch
  • Who is your current watch list at the time, and is this user even in your watch list
  • Your own camera's active state at the time

Ways to trigger the bug

One bug when booted user a user, and your video freezes for them (due to the severed connection) but it doesn't close automatically.

  1. alice is watching bob's camera
  2. When bob boots alice off:
    • bob's page deleted alice from the watch list locally, in JS
    • alice's video feed of Bob doesn't close, it just freezes (because the WebRTC peer connection was severed)
  3. alice later on, closes bob's video because it's frozen
    • alice's page sends an unwatch to bob, and the SFX plays at a mysterious time (alice didn't appear on bob's watcher list)

There may be other bugs, though:

Observations

I turned on my cam and for a while nobody watched it for the first time.

In that time span, I got a couple of "unwatch" events from people, where my watch list was [].

A user reported that the Unwatch sound effect plays at unusual times, including when his camera isn't even currently online. The only place that SFX plays is when an `unwatch` message is received from the server. It may be other chat users are sending `unwatch` events too aggressively. As of 4179cba30a864e5f8e07cedc301f64c70c17dfba debug messages will be logged to the "Debug Log" channel (type the command `/toggle-debug-settings` to access that channel). The SFX plays when an `unwatch` from a username is received, and logs relevant info: * Which username sent you the unwatch * Who is your current watch list at the time, and is this user even in your watch list * Your own camera's active state at the time ### Ways to trigger the bug One bug when booted user a user, and your video freezes for them (due to the severed connection) but it doesn't close automatically. 1. alice is watching bob's camera 2. When bob boots alice off: * bob's page deleted alice from the watch list locally, in JS * alice's video feed of Bob doesn't close, it just freezes (because the WebRTC peer connection was severed) 3. alice later on, closes bob's video because it's frozen * alice's page sends an unwatch to bob, and the SFX plays at a mysterious time (alice didn't appear on bob's watcher list) There may be other bugs, though: ### Observations I turned on my cam and for a while nobody watched it for the first time. In that time span, I got a couple of "unwatch" events from people, where my watch list was [].
kirsle added the
bug
label 2025-05-30 03:51:55 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apps/BareRTC#52
No description provided.