isomorphic package for WebRTC
- WebRTC wrapper for native(github.com/keroserene/go-webrtc)
- WebRTC wrapper for GopherJS
- brew install pkg-config
- go get -u github.com/keroserene/go-webrtc
- go get -u github.com/gopherjs/gopherjs
go get -u github.com/nobonobo/webrtc
getUserMedia sample(gopherjs only)
package main
import "github.com/nobonobo/webrtc"
func main() {
stream, err := webrtc.GetUserMedia(webrtc.NewConstraints(true, true))
if err != nil {
log.Println(err)
return
}
...
}