The examples in this folder contain sample code to demonstrate common WebRTC cases including:
- WebRTCTestPatternServer: The simplest example. This program serves up a test pattern video stream to a WebRTC peer.
- WebRTCServer: This example extends the test pattern example and can act as a media source for a peer. It has two source options:
- An mp4 file.
- Capture devices (webcam and microphone). The example includes an html file which runs in a Browser and will connect to a sample program running on the same machine.
- WebRTCReceiver: A receive only example. It attempts to connect to a WebRTC peer and display the video stream that it receives.
- WebRTCClientCodecs: A receive only example that shows a browser's camera, or a test pattern, in a window, with the video codec, and the library that decodes it, picked on its page: vp8.net or h264.net (managed, no native libraries), or FFmpeg for VP8, VP9, H264, H265 or AV1. It's an ASP.NET app that serves its own page, so run it and open http://localhost:8081. Windows only, for the window.
- WebRTCGetStartedCodecs: Sends a test pattern and music to a browser, with the video codec, and the library that encodes it, picked on its page: vp8.net, h264.net or av1.net (managed, no native libraries), or FFmpeg for VP8, VP9, H264, H265 or AV1. It's an ASP.NET app that serves its own page, so run it and open http://localhost:8080. WebRTCGetStarted is the simpler version, with just vp8.net.