Rtsp range header

emreoner oneremre71 at gmail.com
Mon Jul 20 13:58:03 UTC 2020


Hi,
Thank u for your reply,
We are using kurento for rtsp2webrtc feature.

Actually i am trying  in the gstrtspsrc.c class  which is from 
gst-plugins-good project. You can see my code below. I put static value for
just trying range header but it is not affecting the result. add_header
function is not being called. What can be the issue?

gboolean
add_header (GstRTSPSrc     *gstrtspsrc, GstRTSPMessage *arg1, gpointer       
user_data){
    GstRTSPMessage request = { 0 };

    gst_rtsp_message_add_header (&request, GST_RTSP_HDR_RANGE,
"clock=20200719T070100Z-");

    return TRUE;

}

static GstRTSPResult
gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
{
......
.....
....

 /* do play */
    res = gst_rtspsrc_init_request (src, &request, GST_RTSP_PLAY,
setup_url);

      g_signal_connect (src, "before-send",
                      (GCallback) add_header,"clock=20200719T070100Z-");



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list