membraneframework / membrane_core

The core of the Membrane Framework, advanced multimedia processing framework
https://membrane.stream
Apache License 2.0
1.22k stars 34 forks source link

Defer connection setup in RTMP Server #812

Open varsill opened 1 month ago

varsill commented 1 month ago

The new RTMP server, introduced in: https://github.com/membraneframework/membrane_rtmp_plugin/pull/85, sends the response to the Connect message as fast as possible, even in case nobody is about to read the stream from a particular client.

The idea is to make sure that the Connection message response (or even some response messages sent earlier during the handshake) is sent when server is about to start reading the stream, so that the client won't start sending stream before server is ready.