It will be nice if you want to contribute new codes or improve existing ones. If you would like to add functionality, please submit an issue before start coding.
Please do the following:
- Follow the existing styles (we have an
.editorconfig
file)
I tried to figure it out how to get the maximum of camera resolution. Not an easy solution, i found that the constraint video.optional[]
was working but is obsolete :
video.optional: [
{ minWidth: 640 },
...
]
So the lib use instead the new constraint video.advanced[]
:
video.advanced: [
{ 'width': {'min': 640} },
...
]
But with the new constraint video.advanced[]
, i had problem with my samsung galaxy S4 environment camera
but not with the user
environment, so when we use the maximum resolution and the camera won't start it get error of trackStartError
because the resolution is to hight? So instead of crashing and doing nothing, it fall back to default resolution by trying multiples minimum width
until they is no more video.advanced[...]
array. It's a hack, If you have better solution please contribute :)
- run
npm install
- run
npm start
- write your code in ES6
- push your changes
- create a PR with a link to the original issue
That's it! Thank you for your contribution!