maykbrito / mini-video-me

📹 A small webcam player focused on providing an easy way to add and control your webcam during recordings.
https://maykbrito.github.io/mini-video-me/
MIT License
1.56k stars 154 forks source link

feat: add permanent storage for deviceId #87

Open developerdavi opened 1 year ago

developerdavi commented 1 year ago

This PR adds permanent storage for the deviceId, so everytime you open the app again you will automatically use the device you were using by the time you closed the app.

Because it's simple and data can be more dynamic (e.g the device can be unavailable) it's using localStorage strategy to store the deviceId value every time its value changes (via sendActiveVideoInputId and whenVideoInputChanges).

lucaoskaique commented 1 year ago

did the same to work on windows, worked pretty fine yours too