Skip to content

nobonobo/webrtc

Repository files navigation

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

go get -u github.com/nobonobo/webrtc

usage

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
	}
    ...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published