<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="m_6949803191921747834gmail_signature"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div>Hi Ross,</div><div><br></div><div>Thanks for your support. </div><div>Now I am able to change the server port number of the proxy server.</div><div><br></div><div>I have another question. When I try to connect to remote camera through the router, I face some issues witn the RTSP port 554.</div><div>If 554 of camera is configured to 554 of router, streaming works properly. But if 554 of camera is configured to any port other than 554 of router, streaming fails. The server address received by the RTSP client from sdp is the camera IP address,which is private address. If I change this address to the public IP of the router, streaming works even with other port numbers. Is it the correct way of doing? </div><div><br></div><span style="font-family:arial,helvetica,sans-serif">Thanks & Regards,<br></span></div><span style="font-family:arial,helvetica,sans-serif">Indu</span><br></div></div><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div dir="ltr"><span style="font-family:arial,helvetica,sans-serif"><img src="https://docs.google.com/uc?export=download&id=1GzFLu604Ww4jSfwbLYWEmLW5r5JODlsA&revid=0B2TXRvkoZlxFWmx6Wm04UWlLUnExbjYxbHFRZWVDMmxLQzBjPQ" width="420" height="119"><br><br></span></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 16, 2019 at 12:19 PM Ross Finlayson <<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> We are developing an android app to stream media from an IP camera.<br>
> We are running a proxy server in android to multiplex the camera stream.<br>
> We use port-forwading to get media stream from remote cameras connected to a router. <br>
> At present, streaming RTP over UDP, we can connect to a single remote camera connected to the router, at a time. I beleive we need to configure RTP and RTCP ports for video/audio streams also with the router. And If I need to connect to multiple cameras simultaneously, I need to configure additional 4 ports for each camera. <br>
> <br>
> My question is how can we use a user defined value for server ports in Live555 library. I have changed the default value of "initialPortNum" in "OnDemandServerMediaSubsession" constructor, but the log shows it still use 6970 as server RTP port. <br>
<br>
You’re on the right track; however the “initialPortNum” parameter that you should change is the one that’s passed to the “ProxyServerMediaSession” constructor. And you should *not* do so by modifying the supplied “ProxyServerMediaSession” code. Instead, you should define your own subclass of “ProxyServerMediaSession”, and define this subclass so that its constructor passes your appropriate value for “initialPortNum” to the (parent) “ProxyServerMediaSession” constructor. Then define and implement your own “createNew()” function for your subclass.<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div>