<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear Ross,<br>
<br>
Thank you very much for your explanation , I'll try to follow your
advice.<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Saverio
</pre>
<div class="moz-cite-prefix">Il 22/07/2015 17:01, Ross Finlayson ha
scritto:<br>
</div>
<blockquote
cite="mid:A3D71278-2A5D-42EC-86C1-5CA1DF179D81@live555.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<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
moz-do-not-send="true"
href="http://live555.com/liveMedia/faq.html#liveInput-unicast"
class=""><a class="moz-txt-link-freetext" href="http://live555.com/liveMedia/faq.html#liveInput-unicast">http://live555.com/liveMedia/faq.html#liveInput-unicast</a></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 moz-do-not-send="true" href="http://www.live555.com/"
class="">http://www.live555.com/</a></span></span>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
live-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a>
<a class="moz-txt-link-freetext" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>