publiclab/infragram
Integrate latest camera selection API from getUserMedia
Aperta
#39 aperta il 3 gen 2019
enhancementgsochelp wanted
Metriche repository
- Star
- (50 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Potentially using a new getUserMedia shim library?
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Parameters
Maybe using https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices
Code for this is here:
We can apparently also specify different resolutions!
{
audio: true,
video: {
width: { min: 1024, ideal: 1280, max: 1920 },
height: { min: 776, ideal: 720, max: 1080 }
}
}
Let's do both!