Implemented Broadcast

Initial implementation of SRT streaming as listener. Changed stream terminology to distinguish network broadcasting and network sharing in local network. Updated user settings accordingly.
This commit is contained in:
Bruno Herbelin
2022-01-23 01:10:10 +01:00
parent 2b3696aab1
commit 5c3c26851c
13 changed files with 326 additions and 73 deletions

View File

@@ -271,7 +271,7 @@ void Streaming::addStream(const std::string &sender, int reply_to, const std::st
if ( NetworkToolkit::is_host_ip(conf.client_address) )
conf.protocol = NetworkToolkit::UDP_RAW;
// for non-localhost, if low bandwidth is requested, use H264 codec
else if (Settings::application.stream_low_bandwidth)
else if (Settings::application.stream_protocol > 0)
conf.protocol = NetworkToolkit::UDP_H264;
// TODO : ideal would be Shared Memory, but does not work with linux snap package...
@@ -456,7 +456,7 @@ void VideoStreamer::stop ()
Streaming::manager().removeStream(this);
// force finished
finished_ = true;
endofstream_ = true;
active_ = false;
}