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

[communication-calling] Screensharing notification stays on after call.stopScreenSharing #29705

Open
1 task
rsanteri opened this issue May 15, 2024 · 3 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@rsanteri
Copy link

  • Package Name: @azure/communication-calling
  • Package Version: 1.23.2
  • Operating system: Windows
  • browser
    • name/version: Chrome/124.0.6367.207

Describe the bug
On Google Chrome sometimes when user is sharing screen and stops with await call.stopScreenSharing(), screen sharing notification bar in google chrome stays active in shared tab. This mostly happens when sharing another tab. After 10s-60s this notification will disappear.

To Reproduce
Steps to reproduce the behavior:

  1. In active room call user starts screen sharing with await Call.startScreenSharing()
  2. User selects tab to share with browsers screen sharing window and observes screen being shared and sees screen sharing notification bar.
  3. User stops screen sharing with await Call.stopScreenSharing()
  4. User keeps seeing screen sharing notification in Chrome. Screen sharing is not sent to other call participant.

Expected behavior
Screen sharing should stop consistently when await Call.stopScreenSharing() is called

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot from 2024-05-15 14-13-06

Additional context
This does happen often with Windows Chrome. Also Linux Chrome has some delay with screen sharing notification bar disappearing.

Variable Call.localVideoStreams is empty array after calling await Call.stopScreenSharing() also in cases where notifcation bar got stuck.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. labels May 15, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @acsdevx-msft.

@rsanteri
Copy link
Author

I was able to get around this by forcing the media tracks stop before calling Call.stopScreenSharing.

screenSharingHTMLVideoElement.srcObject.getTracks().forEach((track) => track.stop());
await call.stopScreenSharing()

@pkestikar
Copy link
Member

Hi @rsanteri , thanks a lot for reporting. We can repro it on our side as well; investigation/fix is in progress.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Communication customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants