mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-23 00:07:29 +08:00
When finding cameras on linux systems, look at camera ID before path or video* (#476)
This commit is contained in:
@@ -81,6 +81,7 @@ func init() {
|
||||
// Initialize finds and registers camera devices. This is part of an experimental API.
|
||||
func Initialize() {
|
||||
discovered := make(map[string]struct{})
|
||||
discover(discovered, "/dev/v4l/by-id/*")
|
||||
discover(discovered, "/dev/v4l/by-path/*")
|
||||
discover(discovered, "/dev/video*")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user