<div dir="ltr">Actually the video being paused in a recorded video of a live camera. But this stream does not return the end time. <div>Since there is no way of determining if a stream supports the PAUSE command in RSTP 1.0, why check the end time? I don't think that removing the end time check will cause anything to break.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-06 6:37 GMT-03:00 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 2015-10-05 14:06, Paulo Vitor Magacho da Silva a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In code both PAUSE and SEEK have the same check (p_sys->rtsp not NULL<br>
and end time greater than 0).<br>
</blockquote>
<br></span>
I don't know any better ways to check for pause support in RTSP 1.0. IIRC, you need RTSP 2.0 to actually solve that problem.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is ok for SEEK where you want to<br>
know the size of the video before jumping to another point. <br>
</blockquote>
<br></span>
That's not true. Without length, DEMUX_SET_POSITION makes no sense, but DEMUX_SET_TIME still does.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But for pause there is no need to check for end time greater than 0.<br>
</blockquote>
<br></span>
Yes there is. If you tell VLC you can pause and you actually can't, bad stuff happens.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And in live cameras (at lest for the one I am testing) this value is<br>
zero preventing the camera to pause correctly.<br>
</blockquote>
<br></span>
Pausing live content makes no sense. You can't pause real time.<br>
<br>
I am aware that we pretend to support pause for some types live streams, but only insofar as it does not break anything (else).<span class=""><br>
<br>
-- <br>
Rémi Denis-Courmont<br>
<a href="http://www.remlab.net/" rel="noreferrer" target="_blank">http://www.remlab.net/</a><br></span>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</blockquote></div><br></div>