Versions Compared

Key

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

...

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:

...

Code Block
languagejs
themeRDark
   session.createStream({
        name: streamName,
        display: localVideo,
        cacheLocalResources: true,
        receiveVideo: false,
        receiveAudio: false
    }).on(STREAM_STATUS.PUBLISHING, function (stream) {
        ...
    }).on(STREAM_STATUS.UNPUBLISHED, function () {
        setStatus("#publishStatus", STREAM_STATUS.UNPUBLISHED);
        onUnpublished();
    }).on(STREAM_STATUS.FAILED, function () {
        ...
    }).publish();

Known issues

1. When stream is republished to RTMP server and is played from this server in JWPlayer, stream picture aspect ration can be distorted

Symptoms: playing stream aspect ratio in JWPlayer differs from published one

Solution: enable metadata sending while stream republishing as RTMP

Code Block
themeRDark
rtmp_transponder_send_metadata=true