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

Generic media device to cut down on repeat code #54

Open
stevenrick opened this issue Feb 15, 2022 · 0 comments
Open

Generic media device to cut down on repeat code #54

stevenrick opened this issue Feb 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stevenrick
Copy link
Member

Now that we have camera.js, audio.js, and screen_capture_device.js it would be smart to genericize the code and logic they all share and move it to a single extendable class object. This would cut down on complexity, improve readability, and streamline bugfixes and future enhancement.

Behavior like constraint handling, recorder calls, and creating some common UI elements can likely be shared.

Each class can then implement custom behavior (audio.js recording to .wav file, camera.js and screen_capture_device rendering to canvas, etc)

@stevenrick stevenrick added the enhancement New feature or request label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant