From 9b701768e6d9f50f8068673b0047ea4bb7d0c9ae Mon Sep 17 00:00:00 2001 From: TannerGabriel Date: Tue, 10 Nov 2020 09:32:13 +0100 Subject: [PATCH] Updated media devices dependency to newest version --- go.mod | 3 ++- go.sum | 12 ++++++++++++ ion-sfu/pub-mediadevice/main.go | 6 ------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 1996154..cc227c7 100644 --- a/go.mod +++ b/go.mod @@ -4,11 +4,12 @@ go 1.14 require ( github.com/cloudwebrtc/go-protoo v0.0.0-20200926140535-79ecde67b906 + github.com/gen2brain/malgo v0.10.19 // indirect github.com/google/uuid v1.1.2 github.com/gorilla/websocket v1.4.2 github.com/pion/ion-log v1.0.0 github.com/pion/ion-sfu v1.0.24 - github.com/pion/mediadevices v0.1.1 + github.com/pion/mediadevices v0.1.5-0.20201110072110-c1958b62a2f8 github.com/pion/rtcp v1.2.4 github.com/pion/webrtc/v2 v2.2.26 github.com/pion/webrtc/v3 v3.0.0-beta.8 diff --git a/go.sum b/go.sum index 0e843d8..1188c4d 100644 --- a/go.sum +++ b/go.sum @@ -73,6 +73,8 @@ github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/gen2brain/malgo v0.10.19 h1:IUVF6WdVV7Txt47Kx2ajz0rWQ0MU0zO+tbcKmhva7l8= +github.com/gen2brain/malgo v0.10.19/go.mod h1:zHSUNZAXfCeNsZou0RtQ6Zk7gDYLIcKOrUWtAdksnEs= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= @@ -164,6 +166,7 @@ github.com/jfreymuth/pulse v0.0.0-20200608153616-84b2d752b9d4 h1:hqRsCQVbjl5GPWT github.com/jfreymuth/pulse v0.0.0-20200608153616-84b2d752b9d4/go.mod h1:cpYspI6YljhkUf1WLXLLDmeaaPFc3CnGLjDZf9dZ4no= github.com/jfreymuth/pulse v0.0.0-20200817093420-a82ccdb5e8aa h1:qUZIj5+D3UDgfshNe8Cz/9maOxe8ddt43qwQH9vEEC8= github.com/jfreymuth/pulse v0.0.0-20200817093420-a82ccdb5e8aa/go.mod h1:cpYspI6YljhkUf1WLXLLDmeaaPFc3CnGLjDZf9dZ4no= +github.com/jfreymuth/pulse v0.0.0-20201014123913-1e525c426c93/go.mod h1:cpYspI6YljhkUf1WLXLLDmeaaPFc3CnGLjDZf9dZ4no= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= @@ -181,6 +184,7 @@ github.com/lherman-cs/opus v0.0.0-20200223204610-6a4b98199ea4 h1:2ydMA2KbxRkYmIw github.com/lherman-cs/opus v0.0.0-20200223204610-6a4b98199ea4/go.mod h1:v9KQvlDYMuvlwniumBVMlrB0VHQvyTgxNvaXjPmTmps= github.com/lherman-cs/opus v0.0.0-20200925065115-26ea9d322d39 h1:WEYmSwg/uoPVmfmpXWPYplb1UUx/Jr4TXGNrPaI8Cj4= github.com/lherman-cs/opus v0.0.0-20200925065115-26ea9d322d39/go.mod h1:v9KQvlDYMuvlwniumBVMlrB0VHQvyTgxNvaXjPmTmps= +github.com/lherman-cs/opus v0.0.2/go.mod h1:v9KQvlDYMuvlwniumBVMlrB0VHQvyTgxNvaXjPmTmps= github.com/lucas-clemente/quic-go v0.7.1-0.20190401152353-907071221cf9 h1:tbuodUh2vuhOVZAdW3NEUvosFHUMJwUNl7jk/VSEiwc= github.com/lucas-clemente/quic-go v0.7.1-0.20190401152353-907071221cf9/go.mod h1:PpMmPfPKO9nKJ/psF49ESTAGQSdfXxlg1otPbEB2nOw= github.com/lucas-clemente/quic-go v0.18.0 h1:JhQDdqxdwdmGdKsKgXi1+coHRoGhvU6z0rNzOJqZ/4o= @@ -273,6 +277,12 @@ github.com/pion/mediadevices v0.0.0-20200803175626-cfdb2221a47c h1:hD37UfI7GpSXR github.com/pion/mediadevices v0.0.0-20200803175626-cfdb2221a47c/go.mod h1:egDO6pEVRWjU+/WWf3MWjJVVO7s3jx0XrCTHyD4zsgI= github.com/pion/mediadevices v0.1.1 h1:JaehiKkwpud7+mKM+iJQRxyqEhT1rJFbG7YiCHz4Nwo= github.com/pion/mediadevices v0.1.1/go.mod h1:R7dazjIyWKMCDZrAm8xHvh1zcUi0mTU9p0ARUB1AAmU= +github.com/pion/mediadevices v0.1.3 h1:ib84pMCZvg9JM1TXQ0WNd0kvNjwQA6qoinnMrDOG5Vk= +github.com/pion/mediadevices v0.1.3/go.mod h1:XD9AMBJB6iBEPvjw2ScJsj7xqljHR0FsvwlDkE5MCrA= +github.com/pion/mediadevices v0.1.4 h1:PqpV4vq4QnnD4cn4+GulsEXxVfPLLD6ZteHTmwAe9+0= +github.com/pion/mediadevices v0.1.4/go.mod h1:Lu9PAZd/LtTTvxJZT1xz2i3qElqKgQkMRCTuoJZZ6y0= +github.com/pion/mediadevices v0.1.5-0.20201110072110-c1958b62a2f8 h1:6hkQIbff8kwhaB5uUDWMeC+u5K3ZHrUSvV0qE0/5wFw= +github.com/pion/mediadevices v0.1.5-0.20201110072110-c1958b62a2f8/go.mod h1:Lu9PAZd/LtTTvxJZT1xz2i3qElqKgQkMRCTuoJZZ6y0= github.com/pion/quic v0.1.1 h1:D951FV+TOqI9A0rTF7tHx0Loooqz+nyzjEyj8o3PuMA= github.com/pion/quic v0.1.1/go.mod h1:zEU51v7ru8Mp4AUBJvj6psrSth5eEFNnVQK5K48oV3k= github.com/pion/quic v0.1.4 h1:bNz9sCJjlM3GqMdq7Fne57FiWfdyiJ++yHVbuqeoD3Y= @@ -576,6 +586,8 @@ golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a h1:i47hUS795cOydZI4AwJQCKXOr golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201029080932-201ba4db2418 h1:HlFl4V6pEMziuLXyRkm5BIYq1y1GAbb02pRlWvI54OM= +golang.org/x/sys v0.0.0-20201029080932-201ba4db2418/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/ion-sfu/pub-mediadevice/main.go b/ion-sfu/pub-mediadevice/main.go index ce0fdf5..734cadb 100644 --- a/ion-sfu/pub-mediadevice/main.go +++ b/ion-sfu/pub-mediadevice/main.go @@ -115,12 +115,6 @@ func main() { go readMessage(c, done) - vp8Params, err := vpx.NewVP8Params() - if err != nil { - panic(err) - } - vp8Params.BitRate = 100000 // 100kbps - fmt.Println(mediadevices.EnumerateDevices()) s, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{