Need to get and print stat from srtsrc element from gstreamer 1.22 version. recent version uses this code
GstStructure *stats;
g_object_get(source, "stats", &stats, NULL);
gchar *stats_str = gst_structure_to_string(stats);
std::cout << (stats_str ? stats_str : "null") << std::endl;
and receiving this result. Just this result, nothing more. Even when you stream to the source element nothing is changed.
application/x-srt-statistics, bytes-received-total=(guint64)0;
As far as documentation says in this issue in Gstreamer-java repo srt can provide more information like msRTT or bandwidth rate. How can we get the stats in C++?