- Javascript control of PC webcam with functions to manipulate image colours etc.
- Note: to open web links in a new window use: ctrl+click on link

- Webcam in javascript app, using a local server to host the webcam.
.
.
- run 'npm i' to install 'browser-sync' package then type 'npm run start'.
- function to get video stream data and play it.
function getVideo() {
navigator.mediaDevices
.getUserMedia({ video: true, audio: false })
.then(localMediaStream => {
video.srcObject = localMediaStream;
video.play();
})
.catch(err => {
console.error(`oh no!!`, err);
});
}
- Updated as video.src is deprecated in Chrome Browser: video.srcObject is the new version.
- npm module image-js can manipulate images to change colours etc.
- Status: Working.
- To-Do: add more image filtering functions