mediadevices icon indicating copy to clipboard operation
mediadevices copied to clipboard

Refractor the use of prop.Media vs prop.MediaConstraints

Open lherman-cs opened this issue 4 years ago • 1 comments

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?

lherman-cs avatar Jun 03 '20 12:06 lherman-cs

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?

xhejtman avatar Jul 17 '21 17:07 xhejtman