mediadevices
mediadevices copied to clipboard
Refractor the use of prop.Media vs prop.MediaConstraints
Currently, there are 2 ways of specifying media property:
-
prop.Media
: provide concrete values. -
prop.MediaConstraints
: provide interfaces over values. These interfaces are meant to be used for representing, as the naming goes, constraints.
In the codebase, we should refractor some of these misuses. For example, in driver
package, should we change Properties
from returning prop.Media
to prop.MediaConstraints
?
Hi, I am bit lost in this properties stuff. I thought that Properties() method from driver (e.g. screen) returns driver properties such as width/height/image format to a codec. But it is not happening. Is it design bug?