...
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:
...
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||
---|---|---|
| ||
rtmp_transponder_send_metadata=true |