Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable resolution changes with getUserMedia API options #71

Open
jywarren opened this issue Jan 3, 2019 · 0 comments
Open

Enable resolution changes with getUserMedia API options #71

jywarren opened this issue Jan 3, 2019 · 0 comments

Comments

@jywarren
Copy link
Member

jywarren commented Jan 3, 2019

Related to:

publiclab/infragram#39

We can apparently specify different resolutions!

{
  audio: true,
  video: {
    width: { min: 1024, ideal: 1280, max: 1920 },
    height: { min: 776, ideal: 720, max: 1080 }
  }
}

Options at:

// options contains the configuration information for the shim
// it allows us to specify the width and height of the video
// output we're working with, the location of the fallback swf,
// events that are triggered onCapture and onSave (for the fallback)
// and so on.
options: {
"audio": false,
"video": true,
// the element (by id) you wish to apply
el: "webcam",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant