2
0
Paul-Louis Ageneau f555a6935d CMake: Fix deprecation warning in examples 1 сар өмнө
..
uwp 85f4335493 Examples: Added media-sender example 3 жил өмнө
CMakeLists.txt f555a6935d CMake: Fix deprecation warning in examples 1 сар өмнө
README.md fd7d2ca0f1 Examples: Enhanced readme 3 жил өмнө
main.cpp a0f3f01bf5 Re-licensed under MPL 2.0 2 жил өмнө
main.html 37dcc016c2 Examples: Enhanced the media SFU example 3 жил өмнө

README.md

Example streaming to browser

This is a copy/paste example forwarding a local RTP stream to the browser.

How to use

Open main.html in your browser.

Start the application and copy its offer into the text box on the web page.

Copy the answer of the web page back into the application.

The application expects an incoming RTP h264 video stream with payload type 96 on localhost:6000. On Linux, use the following gstreamer demo pipeline to capture video from a V4L2 webcam and send it as RTP to port 6000 (You might need to change /dev/video0 to your actual device):

$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! videoconvert ! queue ! x264enc tune=zerolatency bitrate=1000 key-int-max=30 ! video/x-h264, profile=constrained-baseline ! rtph264pay pt=96 mtu=1200 ! udpsink host=127.0.0.1 port=6000