media-send

command
v0.0.0-...-14813e4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 6 Imported by: 0

README

media-send

media-send demonstrates a browser video call where the page still captures camera with getUserMedia, but the answerer can move to the backend with handoff.

When Override is disabled:

  • both peer connections stay in the browser
  • the remote video is just the local camera flowing through the browser-only example

When Override is enabled:

  • the answerer runs in the backend
  • the backend listens for VP8 RTP on udp://127.0.0.1:5004
  • the backend forwards that RTP into the WebRTC session so the browser shows it
  • the page still uses normal browser capture, but the backend replaces the remote video path

Instructions

Run media-send

Execute go run .

Open the Web UI

Open http://localhost:8080, enable Override, click Start, and allow camera access.

Send test video with FFmpeg

Execute:

ffmpeg -re -f lavfi -i testsrc=size=1280x720:rate=30 -an -c:v libvpx -deadline realtime -cpu-used 8 -g 30 -f rtp rtp://127.0.0.1:5004

Any VP8 RTP sent to udp://127.0.0.1:5004 will be forwarded to the browser. This only applies when Override is enabled.

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