Add WebRTC support using libdatachannel

The WebRTC is exposed via `/video.html` endpoint
and enabled by default as long as h264 stream
is available.
This commit is contained in:
Kamil Trzcinski
2022-08-31 19:04:54 +02:00
parent ff81088824
commit 5ee0bee59f
19 changed files with 644 additions and 87 deletions

11
output/webrtc/webrtc.h Normal file
View File

@ -0,0 +1,11 @@
#pragma once
#include "util/http/http.h"
#include "util/opts/log.h"
#include "util/opts/fourcc.h"
#include "util/opts/control.h"
#include "device/buffer.h"
// WebRTC
void http_webrtc_offer(http_worker_t *worker, FILE *stream);
void webrtc_server();