Skip to content

Conversation

@danielstrolle-ms
Copy link

Purpose

  • Add support for transfer, support includes introduction of call array instead of single call and supports both transferring and being transferred

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...
    I manually tested stuff within calls (video, video effects, call holding, resuming, spotlight, raise hand within transfer flows (before and after transfer). Probably did not test every scenario

Other Information

onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff())}>
onClick={async () => {
this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff());
this.props.onReject();
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we calling onReject here?

Copy link
Author

Choose a reason for hiding this comment

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

I took this part from another PR that had some initial scaffolding, I'm not sure why. It seems to work as intended. Will ask original author

canSpotlight: this.capabilities.spotlightParticipant?.isPresent || this.capabilities.spotlightParticipant?.reason === 'FeatureNotSupported',
canMuteOthers: this.capabilities.muteOthers?.isPresent || this.capabilities.muteOthers?.reason === 'FeatureNotSupported',
canReact: this.capabilities.useReactions?.isPresent || this.capabilities.useReactions?.reason === 'FeatureNotSupported',
videoOn: this.call.isLocalVideoStarted,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: why remove the usage of isLocalVideoStarted? I'd suggest to keep this in as this is a sample and isLocalVideoStarted is a GA API on the SDK.

screenSharingOn: this.call.isScreenSharingOn,
micMuted: this.call.isMuted,
videoOn: !!props.call.localVideoStreams[0],
screenSharingOn: props.callIsScreenShareOn,
Copy link
Contributor

Choose a reason for hiding this comment

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

props.call.isScreenSharingOn?

return;
}
try {
var id = {communicationUserId: this.destinationUserId.value}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var id = {communicationUserId: this.destinationUserId.value}
const id = {communicationUserId: this.destinationUserId.value}

onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff())}>
onClick={async () => {
this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff());
this.props.onReject();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the reject here is a hack, we shall fix it properly by cleaning up old call/state and adding the new one

onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOn())}>
onClick={async () => {
this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOn());
this.props.onReject();
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

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.

6 participants