fix: automatically select highest available video resolution

This commit is contained in:
busti 2023-12-10 07:04:18 +01:00 committed by jedi
parent fe2b6e9f68
commit a85c3c3296

View file

@ -100,6 +100,12 @@ export default {
if (this.stream) this.allowed = true;
},
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.streaming = false;
const {video} = this.$refs;