Skip to content

Disable the camera button while the source is being switched#3943

Merged
JamesBurnside merged 11 commits intomainfrom
jaburnsi/throttle-switching-camera
Jan 3, 2024
Merged

Disable the camera button while the source is being switched#3943
JamesBurnside merged 11 commits intomainfrom
jaburnsi/throttle-switching-camera

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Dec 22, 2023

What

  • Disable the camera switcher buttons when the source is being changed by waiting on the switchSource promise.
  • Add a workaround throttle (await stream?.getMediaStream();) while a bug is being fixed on the calling sdk

Why

Quick successive uses causes the camera to lock up

https://skype.visualstudio.com/SPOOL/_workitems/edit/3521866

How Tested

Locally, verified switching the camera disables the camera buttons until the new stream has loaded, and could no longer repro the camera locking up.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 22, 2023

Calling bundle size is increased❗.

  • Current size: 5616048
  • Base size: 5615317
  • Diff size: 731

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 22, 2023

Chat bundle size is decreased✅.

  • Current size: 1533200
  • Base size: 1533201
  • Diff size: -1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 22, 2023

CallWithChat bundle size is increased❗.

  • Current size: 6431784
  • Base size: 6431053
  • Diff size: 731

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 22, 2023

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 43773 / 70201
62.35%
43773 / 70201
62.35%
910 / 1971
46.16%
2597 / 4208
61.71%
Current 43803 / 70247
62.35%
43803 / 70247
62.35%
910 / 1971
46.16%
2598 / 4205
61.78%
Diff 30 / 46
0%
30 / 46
0%
0 / 0
0%
1 / -3
0.07%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 22, 2023

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 21776 / 34330
63.43%
21776 / 34330
63.43%
594 / 1027
57.83%
1706 / 2716
62.81%
Current 21778 / 34368
63.36%
21778 / 34368
63.36%
594 / 1027
57.83%
1699 / 2713
62.62%
Diff 2 / 38
-0.07%
2 / 38
-0.07%
0 / 0
0%
-7 / -3
-0.19%

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 2, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 3, 2024

@JamesBurnside JamesBurnside merged commit d76c132 into main Jan 3, 2024
@JamesBurnside JamesBurnside deleted the jaburnsi/throttle-switching-camera branch January 3, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants