Skip to content

[BugFix] Add isCameraOn to CallAdapter state#2641

Merged
dmceachernmsft merged 13 commits intomainfrom
dmceachernmsft/cameraAndMicAdapterState
Jan 10, 2023
Merged

[BugFix] Add isCameraOn to CallAdapter state#2641
dmceachernmsft merged 13 commits intomainfrom
dmceachernmsft/cameraAndMicAdapterState

Conversation

@dmceachernmsft
Copy link
Copy Markdown
Member

What

Add new state tracking local participants camera state to the CallAdapter

Why

Allows Contoso to have better state control of the camera should they want to do something based on it like create their own custom control bar for the CallComposite.

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

How Tested

Ran samples locally checking whether the state of the camera was being reflected appropriately in new variable.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2023

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2023

Calling bundle size is increased❗.

  • Current size: 5496007
  • Base size: 5495814
  • Diff size: 193

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2023

CallWithChat bundle size is increased❗.

  • Current size: 5880036
  • Base size: 5879843
  • Diff size: 193

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2023

Chat bundle size is increased❗.

  • Current size: 5584996
  • Base size: 5584995
  • Diff size: 1

Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside left a comment

Choose a reason for hiding this comment

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

Small change to avoid using getState as this will be a stale value to the one passed into setState fn, but otherwise looks great! Really like this change as it was a big gap for me during the hackathon

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2023

Comment thread packages/react-composites/review/beta/react-composites.api.md Outdated
Copy link
Copy Markdown
Contributor

@PorterNan PorterNan left a comment

Choose a reason for hiding this comment

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

Just a minor comment about naming for future proof, this looks good to me

@github-actions
Copy link
Copy Markdown
Contributor

Comment thread packages/communication-react/review/stable/communication-react.api.md Outdated
@dmceachernmsft dmceachernmsft enabled auto-merge (squash) January 10, 2023 01:08
@github-actions
Copy link
Copy Markdown
Contributor

@dmceachernmsft dmceachernmsft merged commit bd3c149 into main Jan 10, 2023
@dmceachernmsft dmceachernmsft deleted the dmceachernmsft/cameraAndMicAdapterState branch January 10, 2023 01:29
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.

5 participants