mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-23 00:07:29 +08:00
Add webcam close to linux camera discover (#568)
Add webcam close to linux discover
This commit is contained in:
@@ -125,6 +125,7 @@ func discover(discovered map[string]struct{}, pattern string) {
|
||||
|
||||
var name, busInfo string
|
||||
if webcamCam, err := webcam.Open(cam.path); err == nil {
|
||||
defer webcamCam.Close()
|
||||
name, _ = webcamCam.GetName()
|
||||
busInfo, _ = webcamCam.GetBusInfo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user