From dc9b5ce0b12a918c77a05e0f37e8a934c5027970 Mon Sep 17 00:00:00 2001 From: TonyChyi Date: Fri, 30 Sep 2022 12:26:02 +0800 Subject: [PATCH] update device list --- lib/webrtcconnection/connection.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/webrtcconnection/connection.go b/lib/webrtcconnection/connection.go index 0a1489b..d9c78b1 100644 --- a/lib/webrtcconnection/connection.go +++ b/lib/webrtcconnection/connection.go @@ -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{