PolymerElements / app-media

Elements for accessing data from media input devices and visualizing that data for users
61 stars 12 forks source link

Adds a `selectDevice` method. #21

Closed bicknellr closed 7 years ago

bicknellr commented 7 years ago

You can use this method to directly select a specific device from devices. Throws if the device is not in the current list.

bicknellr commented 7 years ago

Does this count as fixing #18?

bicknellr commented 7 years ago

Also, I'm having trouble running tests - I'll have to get your input tomorrow.

cdata commented 7 years ago

Does this count as fixing #18?

No, #18 would be satisfied by an easy, declarative way to say, "give me the front-facing camera." I think the best thing to solve this is some way to describe the constraints in a more straight-forward fashion.

cdata commented 7 years ago

Tests pass for me. LGTM 👍