Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep screenshares when switching focus #1892

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 10, 2023

This also removes the use of the useLivekitRoom hook: we had reached the point where the only thing it was actually doing was disconnecting, so we now do that in the onClick handler for the leave button (I don't think we need to disconnect on unmount?). It was otherwise just getting in the way and causing tracks to be enabled/disabled when we didn't want them to be. This also removes the need for the blockAudio code.

Fixes #1413
Based on: #1891

This also removes the use of the useLivekitRoom hook: we had reached
the point where the only thing it was actually doing was disconnecting,
so we now do that in the onClick handler for the leave button (I don't
think we need to disconnect on unmount?). It was otherwise just getting in
the way and causing tracks to be enabled/disabled when we didn't want them
to be. This also removes the need for the blockAudio code.

Fixes #1413
@dbkr dbkr added the T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems label Nov 10, 2023
@dbkr dbkr requested a review from a team as a code owner November 10, 2023 15:27
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The useLiveKit file with the hook still seems to be here? Did I misunderstand the PR description? It sounded like this would be removed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useLivekitRoom is the hook provided by Livekit components which is being removed. useLivekit is our own hook.

@dbkr dbkr requested a review from toger5 November 13, 2023 15:42
Copy link
Member

@robintown robintown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple questions

src/room/InCallView.tsx Show resolved Hide resolved
src/livekit/useECConnectionState.ts Show resolved Hide resolved
@dbkr dbkr changed the base branch from dbkr/require_e2eeconfig to livekit November 15, 2023 16:13
@dbkr dbkr merged commit 081c42f into livekit Nov 16, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retain screenshare state on focus switch
3 participants