reflect

command
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

reflect

reflect demonstrates how with one PeerConnection you can send video to Pion and have the packets sent back. This example could be easily extended to do server side processing.

Instructions

Download reflect
export GO111MODULE=on
go get github.com/asticode/webrtc/v3/examples/reflect
Open reflect example page

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

Run reflect, with your browsers SessionDescription as stdin

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

Linux/macOS

Run echo $BROWSER_SDP | reflect

Windows
  1. Paste the SessionDescription into a file.
  2. Run reflect < my_file
Input reflect's SessionDescription into your browser

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

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

Your browser should send video to Pion, and then it will be relayed right back to you.

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL