Hi all,<br><br>I am using the below pipeline to work as a RTSP client.<br><br>gst-launch rtspsrc location=rtsp://localhost:8554/jurassic.mp4 latency=200 name=d d. ! queue ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! ximagesink d. ! queue ! rtpmp4adepay ! faad ! audioconvert ! autoaudiosink<br>
<br>I wanted to handle PLAY &amp; PAUSE operations on client side. So I have modified the &quot;rtspsrc&quot; plugin&#39;s source code to handle the keyboard inputs. I have created a thread which calls a callback function in the file gstrtspsrc.c to detect the key hit. I am creating &amp; running this thread from the gst_rtspsrc_init() function. <br>
<br>When I hit the key &#39;p&#39; from my keyboard I change the state of the of the &quot;rtspsrc&quot; element to PAUSED &amp; with the next hit of key &#39;p&#39; I change the state to PLAYING.<br>This addition does play &amp; pause but the play after pause change doesn&#39;t happen immediately and sometimes the video isn&#39;t smooth.<br>
<br>Am I doing PLAY &amp; PAUSE properly? If not could someone suggest me a better way to do the same. If its right how do I improve the video display &amp; avoid the delay for play after pause.<br><br>Thanks in advance.<br>