How to get bitrate selected by hlsdemux

Sirius Wu ccwu660601 at gmail.com
Fri Nov 15 15:02:03 UTC 2019


Hi,

in gsthlsdemux.c there is the following clause:

    gst_element_post_message (GST_ELEMENT_CAST (demux),
        gst_message_new_element (GST_OBJECT_CAST (demux),
            gst_structure_new (GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME,
                "manifest-uri", G_TYPE_STRING,
                main_uri, "uri", G_TYPE_STRING,
                uri, "bitrate", G_TYPE_INT, new_bandwidth, NULL)));

Can I get the bitrate of this message with g_signal_connect?

With g_signal_connect (demux, "bitrate", a_callback, data)?

-- 
Sirius Wu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191115/012d2322/attachment.html>


More information about the gstreamer-devel mailing list