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

feat: switches for input devices #3447

Merged
merged 5 commits into from May 25, 2018
Merged

feat: switches for input devices #3447

merged 5 commits into from May 25, 2018

Conversation

AndyLnd
Copy link
Contributor

@AndyLnd AndyLnd commented May 25, 2018

No description provided.

type: z.media.MediaDeviceType.VIDEO_INPUT">
</device-toggle-button>
<!-- /ko -->
<!-- ko ifnot: showSwitchCamera -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for consistency, can we try to call the showSwitchCamera observable always the same way.
Either showSwitchCamera() or showSwitchCamera.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe showSwitchCamera() would be better, so that we don't, when reading the code, testing that the observable exists with testing the actual value of the observable.

type: z.media.MediaDeviceType.VIDEO_INPUT">
</device-toggle-button>
<!-- /ko -->
<!-- ko ifnot: showSwitchCamera -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe showSwitchCamera() would be better, so that we don't, when reading the code, testing that the observable exists with testing the actual value of the observable.

return this.isCallOngoing() && isVisible;
});
this.showSwitchScreen = ko.pureComputed(() => {
const hasMultipleCameras = this.availableDevices.screen_input().length > 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

hasMultipleCameras => hasMultipleScreens

@AndyLnd AndyLnd merged commit f8cda06 into edge May 25, 2018
@AndyLnd AndyLnd deleted the switch-screen branch May 25, 2018 13:11
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.

None yet

3 participants