Files
mediadevices/examples/facedetection
2020-05-24 10:26:16 +09:00
..
2020-03-25 23:46:33 -04:00
2020-03-25 23:46:33 -04:00
2020-03-25 23:46:33 -04:00

Instructions

Download facedetection

go get github.com/pion/mediadevices/examples/facedetection

Open example page

jsfiddle.net you should see two text-areas and a 'Start Session' button

Run facedetection with your browsers SessionDescription as stdin

In the jsfiddle the top textarea is your browser, copy that and:

Linux

Run echo $BROWSER_SDP | facedetection

Input facedetection's SessionDescription into your browser

Copy the text that facedetection just emitted and copy into second text area

Hit 'Start Session' in jsfiddle, enjoy your video!

A video should start playing in your browser above the input boxes, and will continue playing until you close the application.

Congrats, you have used pion-WebRTC! Now start building something cool