Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobonobo/webrtc
https://github.com/nobonobo/webrtc
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nobonobo/webrtc
- Owner: nobonobo
- License: bsd-3-clause
- Created: 2016-02-01T09:43:29.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T10:15:27.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:47:33.124Z (6 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webrtc
isomorphic package for WebRTC
- WebRTC wrapper for native(github.com/keroserene/go-webrtc)
- WebRTC wrapper for GopherJS## dependencies for native
- brew install pkg-config
- go get -u github.com/keroserene/go-webrtc## dependencies for gopherjs
- go get -u github.com/gopherjs/gopherjs
## install
```sh
go get -u github.com/nobonobo/webrtc
```## usage
getUserMedia sample(gopherjs only)
```go
package mainimport "github.com/nobonobo/webrtc"
func main() {
stream, err := webrtc.GetUserMedia(webrtc.NewConstraints(true, true))
if err != nil {
log.Println(err)
return
}
...
}
```