<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 bgcolor="#FFFFFF" text="#000000" class=""><div class="moz-forward-container">I've this network infrastructure: <br class="">
<br class="">
- Server1 with live555MediaServer installed that stream a MPEG
Transport Stream file .ts on the net (This file .ts is growing)<br class="">
- Server2 with live555ProxyServer installed that receives rtsp
stream of Server1 and proxy it to some RTSP clients<br class="">
It works fine but now when a RTSP Client connects to Server2
receives the video stream ever since the beginning of the file
.ts.<br class="">
<br class="">
<b class="">Is it possible to modify live555MediaServer code or
live555ProxyServer to set the start of stream always at 90% of
file lenght?</b><br class=""></div></div></div></blockquote><div><br class=""></div></div>The “LIVE555 Media Server” is intended to be a complete application - for streaming complete media files (i.e., starting from the beginning) - and was not intended to be modified (although anyone is, of course, free to do so, subject to the LGPL). The reason why the first client of the proxy server receives data from the start of the file is because the because your ‘back end’ server is the “LIVE555 Media Server”, and this server works by streaming from the file, starting from the beginning. (Note, however, that if you later start a second concurrent client of the proxy server, then this second client will receive the stream starting at the same point that the first client is currently at - i.e., not at the start of the file.)<div class=""><br class=""></div><div class="">Therefore, if you want to change this behavior, you should do so by developing your own ‘back end’ server that handles each request - from the ‘proxy server’ - by starting the stream at whatever point you want (rather than the beginning of the file). To do this, I suggest that you use the “testOnDemandRTSPServer” demo application code (in the “testProgs”) directory as a model. In particular, you would develop your own “OnDemandServerMediaSubsession” subclass; see</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://live555.com/liveMedia/faq.html#liveInput-unicast" class="">http://live555.com/liveMedia/faq.html#liveInput-unicast</a></div><div class="">Note that you would need to implement the “createNewStreamSource()” and “createNewRTPSink()” pure virtual functions. Your implementation of “createNewRTPSink()” would be exactly the same as the one that’s in “liveMedia/MPEG2TransportFileServerMediaSubsession.cpp”. Your implementation of “createNewStreamSource()” would work by seeking initially to whatever point in the file you want.</div><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>