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

UI webcam save defaults #75

Merged
merged 6 commits into from
Jan 5, 2022
Merged

UI webcam save defaults #75

merged 6 commits into from
Jan 5, 2022

Conversation

dceejay
Copy link
Member

@dceejay dceejay commented Sep 23, 2021

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

This PR lets the user set the default camera to use (via the select dropdown) and that is then stored in the browser localStorage for next time it is used.

It also adds and allows a msg.camera control message that can be set to the index in the list of available cameras (usually 0,1,2,3 etc) - if valid the stream will switch to that camera. If the camera is currently disabled it does NOT re-enable the camera.

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run grunt to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@dceejay dceejay closed this Sep 23, 2021
@dceejay dceejay reopened this Sep 23, 2021
node-red-node-ui-webcam/ui_webcam.js Outdated Show resolved Hide resolved
node-red-node-ui-webcam/ui_webcam.js Outdated Show resolved Hide resolved
node-red-node-ui-webcam/ui_webcam.js Outdated Show resolved Hide resolved
@dceejay dceejay merged commit 5a3b627 into master Jan 5, 2022
@dceejay dceejay deleted the ui-webcam-save-defaults branch January 5, 2022 15:27
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

2 participants