spectral-workbench icon indicating copy to clipboard operation
spectral-workbench copied to clipboard

Develop setting to increase capture image resolution above currently fixed 640px

Open cesswairimu opened this issue 3 years ago • 1 comments

cesswairimu avatar Feb 25 '22 09:02 cesswairimu

I want to say, i think that the new WebRTC library that was installed can now request different resolutions. So I think this may be a little simpler, but in addition to that there will still need to be the ability to change the pixel size of the canvas we're working on.

First, here is some existing code to change the resolution. I don't know if it works?

https://github.com/publiclab/spectral-workbench.js/blob/6b658483535b5f1585163be01dfdf07961351a76/examples/capture/getUserMedia.js#L43-L54

Ah, it looks like this was implemented in https://github.com/publiclab/spectral-workbench.js/pull/173 for the old interface!

So I wonder, is our task:

  • [ ] put a "resolution" dropdown in the new interface like in this code change
  • [ ] check if it works - and check if code like $W.updateResolution("720p") works?

jywarren avatar Feb 25 '22 17:02 jywarren