Chrome "screensharing banner" stays active even after leaving the call
Describe the bug While normal screensharing works great, there is a but in Agora and/or Chrome which keeps the screensharing banner alive after the user has switched the tab to share.
To Reproduce Steps to reproduce the behavior:
- Initiate screenshare
- Share a specific tab
- Switch to another tab in Chrome and click "Share this tab instead"
- End call
Expected behavior
The screensharing banner should disappear.
Screenshots
What is shown before switching the screensharing tab:

After the user has switched to that tab:

Notification / banner still being shown for that "new tab", even after having left the call:

Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: 99
have you call stopScreenSharing before leavechannel?
@LichKing-2234 Yes, I tried to explicitly end the screenshare if active (via the helper) before ending the call, but that didn't change anything. This problem persisted.
The web support for agora_rtc_engine 6.x has landed in the main branch, If you still face issues, please try the latest code in main branch to see if it works or not.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.