Open ZeoWorks opened 1 year ago
Hi, thanks for trying out the package!
Subpackages under ./examples
aren't designed to be used from other packages or product apps.
(Path including ./internal
means unexported: https://go.dev/doc/go1.4#internalpackages)
If building any product apps, we recommend to implement proper and secure way to exchange SDPs. If just trying the package, please copy the files under your package.
BTW, the direct reason of the error is due to replace
:
https://github.com/pion/mediadevices/blob/3bec69bbf8841be66004021d4e8453cf520ab51c/examples/go.mod#L11
This is for separating deps only for examples from the main library and keep the examples buildable with the latest library.
Thank you, but this occurs even within your examples. An example would be trying to build your webrtc sample; https://github.com/pion/mediadevices/tree/master/examples/webrtc
@ZeoWorks Hmm, I couldn't reproduce the error on building ./examples/webrtc
on Go 1.19 on Linux.
What environment, Go version, and pion/mediadevices
version do you use?
Also, could you share the exact command and error log?
Hi, go.1.19 on Windows, latest mediadevices version. Thanks sir!
Hi, upon requesting signal;
go get github.com/pion/mediadevices/examples/internal/signal
This error occurs;
go: github.com/pion/mediadevices/examples@v0.0.0-20220824115655-3bec69bbf884 requires github.com/pion/mediadevices@v0.0.0: reading github.com/pion/mediadevices/go.mod at revision v0.0.0: unknown revision v0.0.0
No issue with any of the others. :)