gocv-receive is a simple application that shows how to receive media using Pion and then do motion detection with GoCV.
This example borrows heavily from GoCV's motion-detect example. You could easily implement many other GoCV applications following the same pattern
This example requires you have GoCV and ffmpeg installed, these are the supported platforms
- Follow the setup instructions for GoCV
sudo apt-get install ffmpeg
brew install ffmpeg opencv
go build -tags gocv
jsfiddle.net you should see your Webcam, two text-areas and a 'Start Session' button
In the jsfiddle the top textarea is your browser, copy that and:
Run echo $BROWSER_SDP | gocv-receive
- Paste the SessionDescription into a file.
- Run
gocv-receive < my_file
Copy the text that gocv-receive
just emitted and copy into second text area
Your video and/or audio should popup automatically, and will continue playing until you close the application.
Congrats, you have used Pion WebRTC! Now start building something cool