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
Conversation
app/page/template/video-calling.htm
Outdated
type: z.media.MediaDeviceType.VIDEO_INPUT"> | ||
</device-toggle-button> | ||
<!-- /ko --> | ||
<!-- ko ifnot: showSwitchCamera --> |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
app/page/template/video-calling.htm
Outdated
type: z.media.MediaDeviceType.VIDEO_INPUT"> | ||
</device-toggle-button> | ||
<!-- /ko --> | ||
<!-- ko ifnot: showSwitchCamera --> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasMultipleCameras
=> hasMultipleScreens
No description provided.