feat: Implement WebcamFileSource for life webcam capture #12

Open
busti wants to merge 51 commits from busti/proto/frontend into jedi/proto/frontend
Showing only changes of commit 64caa7e547 - Show all commits

View file

@ -100,6 +100,12 @@ export default {
if (this.stream) this.allowed = true; if (this.stream) this.allowed = true;
}, },
async assignStream() { async assignStream() {
const capabilities = this.stream.getTracks()[0].getCapabilities();
await this.attemptGetUserMedia({
deviceId: capabilities.deviceId,
width: {exact: capabilities.width.max},
height: {exact: capabilities.height.max}
})
this.capturing = true; this.capturing = true;
this.streaming = false; this.streaming = false;
const {video} = this.$refs; const {video} = this.$refs;