Skip to content

BUG - isRecording value is not correct after leaving the room and joining again  #13

@ssimonitch

Description

@ssimonitch

Expected behavior

I'm experiencing an issue similar to what I saw here:
#9

This time the issue is with the isRecording value returned by the useRecording hook. I expect the isRecording value to accurately reflect whether or not there is a recording in progress for the current room.

Describe the bug (unexpected behavior)

When a user joins a room and starts a recording, the isRecording value is true. If that user then stops the recording and leaves the room, the isRecording value remains true. If the user rejoins the room, the isRecording value is still true even though there is no recording in progress.

During the above process, if there is another user in the room the isRecording value changes from true to false as expected.

Steps to reproduce

I have a modified version of our last code sandbox here:
https://codesandbox.io/s/angry-driscoll-h0ouu6?file=/src/SessionIDDisplay.js

To reproduce:

  1. Open code sandbox in 2 separate windows
  2. In both windows, join the call
  3. In window A, click "start recording"
  4. After delay note that "is recording" is showing true for both users
  5. In window A, click "leave call"
  6. Note that "is recording" is showing true in window A and false in window B
  7. In window A, click "join call"
  8. Note that "is recording" is still showing true in window A and false in window B

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions