<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(68,68,68)">I met another bug about dealing with range time.</div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(68,68,68)">Version: <a href="http://www.live555.com/liveMedia/public/live.2014.12.09.tar.gz" style="font-family:arial,sans-serif" class="">live.2014.12.09.tar.gz</a></div><div class="gmail_default" style="font-family:'courier new',monospace;font-size:small;color:rgb(68,68,68)">File: RTSPServer.cpp line: 1954 code:</div><div class="gmail_default" style=""><font color="#444444" face="courier new, monospace" class="">fStreamStates[i].subsession->seekStream(fOurSessionId, fStreamStates[i].streamToken, absStart, absEnd);</font><br class=""></div><div class="gmail_default" style=""><font color="#444444" face="courier new, monospace" class=""><br class=""></font></div><div class="gmail_default" style=""><font color="#444444" face="courier new, monospace" class="">the </font><span style="color:rgb(68,68,68);font-family:'courier new',monospace" class="">absStart </span><font color="#444444" face="courier new, monospace" class="">and </font><span style="color:rgb(68,68,68);font-family:'courier new',monospace" class="">absEnd </span><span style="color:rgb(68,68,68);font-family:'courier new',monospace" class="">will be freed(deleted) in File: OnDemandServerMediaSubsession.cpp line: 361</span></div></div></div></blockquote><div><br class=""></div>You’re misunderstanding the code.  This is the *default version* of the “seekStreamSource()” virtual function - i.e., the version that gets called if you don’t explicitly implement seeking in your own subclass of “OnDemandServerMediaSubsession”.  If you don’t override (i.e., implement your own version of) the “seekStreamSource()” virtual function (note, BTW, that there are two forms of this function - one for seeking by NPT (‘normal play time’); another for seeking by absolute time), then this default version of the function will get called, and the RTSP response will have a “range: 0-0” header, to show that the server (by default) does not implement seeking.</div><div><br class=""></div><div>Therefore, to implement seeking by absolute time, your subclass of “OnDemandServerMediaSubsession” must reimplement the “seekStreamSource()” virtual function (the second version - the version that supports seeking by absolute time - if that’s what you want to do).</div><div><br class=""></div><div>See</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://live555.com/liveMedia/faq.html#trick-mode" class="">http://live555.com/liveMedia/faq.html#trick-mode</a></div><div>(although that web page mentions only the first (NPT, i.e., ‘normal play time’) version of “seekStreamSource()”, because most developers want to implement only seeking by NPT).</div><br class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>