update device list
This commit is contained in:
parent
acf74153ef
commit
dc9b5ce0b1
@ -35,14 +35,13 @@ func New(o *Options) (*Connection, error) {
|
||||
connection.api = webrtc.NewAPI(webrtc.WithMediaEngine(me))
|
||||
|
||||
logrus.Debug("list devices:")
|
||||
logrus.Debug("------")
|
||||
devices := driver.GetManager().Query(func(d driver.Driver) bool { return true })
|
||||
for _, device := range devices {
|
||||
logrus.Debug(device.ID())
|
||||
logrus.Debug(device.Info())
|
||||
logrus.Debug(device.Properties())
|
||||
logrus.Debug(device.Status())
|
||||
logrus.Debug("------")
|
||||
logrus.Debug("\t", device.ID())
|
||||
logrus.Debug("\t", device.Info())
|
||||
logrus.Debug("\t", device.Properties())
|
||||
logrus.Debug("\t", device.Status())
|
||||
logrus.Debug("\t------")
|
||||
}
|
||||
|
||||
s, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{
|
||||
|
Loading…
Reference in New Issue
Block a user