gstreamer 1.24.1 rtmp connection not established on android devices
Describe your issue
After updating gstreamer from 1.22.9 to 1.24.1 RTMP connection fails at start with some RTMP servers.
Observed Behavior
2024-04-02 15:21:29.913 7374-7748/OurStreamer D/GLib: Msg from STREAMER instance [rtmpsink]:
2024-04-02 15:21:29.914 7374-7748/OurStreamer W/GLib: Got error: Failed to connect: 'publish' cmd failed: connection closed remotely, debug '../gst/rtmp2/gstrtmp2sink.c(1119): send_connect_error (): /GstPipeline:RTMP stream pipeline
/GstRtmp2Sink:rtmpsink:
domain g-io-error-quark, code 0', domain: gst-resource-error-quark, code: 1
from : rtmpsink
2024-04-02 15:21:29.915 7374-7748/OurStreamer I/CRStreamerKt: setError New MSG: Failed to connect: 'publish' cmd failed: connection closed remotely, code: 1, domain: gst-resource-error-quark from: rtmpsink
Setup
Android ndkVersion = "25.2.9519653"
Gstreamer 1.24.1
Steps to reproduce the bug
rtmpsink = gst_element_factory_make("rtmp2sink", "rtmpsink");
g_object_set(G_OBJECT(rtmpsink),
"host", host,
"port", port,
"application", application,
"stream", key,
"sync", FALSE,
"qos", FALSE,
NULL);
How reproducible is the bug?
Connection never establishes on 1.24.1 to this rtmp server, but works on develop nginx or srs servers.
Screenshots if relevant
Solutions you have tried
Returned to 1.22.9 because it just works.
Related non-duplicate issues
Additional Information
if OK (1.22.9 version) dump looks following: if failed (1.24.1):
The only difference I found in 1.22.9 dump Tcp increased packet size and sends some rtmp commands in one tcp packet