...
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 | ||
---|---|---|
| ||
rtmp_out_buffer_enabled=true |
The following bufferization parameters can be tuned
Parameter | Default value | Description |
---|---|---|
rtmp_out_buffer_start_size | 300 | Stream buffer start size, мс |
rtmp_out_buffer_initial_size | 2000 | Stream buffer initial size, мс |
rtmp_out_buffer_polling_time | 50 | Buffer polling timeout, мс |
rtmp_out_buffer_max_bufferings_allowed | -1 | Maximum 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:
...