Commit Graph

15 Commits

Author SHA1 Message Date
Atsushi Watanabe
00eca231a7 Select by DeviceID using StringConstraint 2020-05-24 11:15:29 -04:00
Lukas Herman
24773e968b Add automatic close for AudioRecord when failed 2020-02-19 21:01:33 -08:00
Atsushi Watanabe
2bac44aa8a Close drivers on stream initialization failure
In GetUserMedia and GetDisplayMedia, driver was left opened if
initialization failure. Since Trackers are not returned on error,
there was no way to close them.
This commit closes Trackers on GetUserMedia/GetDisplayMedia failure.
2020-02-19 20:21:21 -08:00
Lukas Herman
75756d3cf7 Properties returns nil when driver is closed 2020-02-15 17:34:27 -08:00
Lukas Herman
b13841688f Fix unguarded VideoRecord and AudioRecord 2020-02-15 17:34:27 -08:00
Atsushi Watanabe
53d55a30e5 Add driver priority information
Make system default device selected by default.
2020-02-14 21:08:47 -08:00
Lukas Herman
46c55deeb4 Change driver registration requirement to have an Info
* Move label to Info
* Replace label requirement to be an info
* Replace Label driver method to be an Info method
2020-02-14 12:22:03 -08:00
Atsushi Watanabe
5653cdf9e8 Implement EnumerateDevices and register all devices 2020-02-12 22:24:09 -08:00
Lukas Herman
aece2b94c6 Refractor, unify some APIs to be more DRY 2020-02-06 22:44:29 -08:00
Lukas Herman
2640f6c1f4 Move all settings to video/audio under io 2020-02-06 22:44:29 -08:00
Lukas Herman
51efa0fe2d Simplify driver's state management 2020-02-06 22:44:29 -08:00
Lukas Herman
e1365d8811 Convert video APIs to use video.Reader 2020-02-06 22:44:29 -08:00
Lukas Herman
f95006bd5e Enhance driver Start error handling
Calling Start will now create a goroutine to run the underlying adapter
Start function concurrently. However, the driver Start function will
block until either it returns early with an error from adapter Start
function or after it receives the first data. This way, the caller
can make sure that the driver has started properly.
2020-02-06 22:44:29 -08:00
Lukas Herman
e34a7b6fe3 Add video driver state management 2020-01-05 22:12:44 -08:00
Lukas Herman
9dbe3bfb9a Move reusable packages into pkg 2019-12-25 16:13:37 -08:00