Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this case, 3 attempts will be made to reconnect to RTMP server with 5 seconds interval. After that, reconnection stops.

RTMP outgoing stream buffering

Since build 5.2.700 outgoing RTMP stream can be buffered. This icreases translation latency, but allows to play the stream more smooth from destination RTMP server. Bufferization is enabled with the following parameter

Code Block
themeRDark
rtmp_out_buffer_enabled=true

The following bufferization parameters can be tuned

ParameterDefault valueDescription

rtmp_out_buffer_start_size

300Stream buffer start size, мс

rtmp_out_buffer_initial_size

2000Stream buffer initial size, мс

rtmp_out_buffer_polling_time

50Buffer polling timeout, мс

rtmp_out_buffer_max_bufferings_allowed

-1Maximum stream bufferings allowed, unlimited by default

Call flow

Below is the call flow when using the Two Way Streaming example to publish a stream and the REST client to send the /push/startup query:

...