<div dir="ltr">Hi,<br>I have Implemented a new class called "MPEG2TransportUDPServerMediaSubsession" that handles on demand relaying of a Basic UDP source transporting MPEG2 TS Video to any client requesting it through rtsp.<br>
To test it please add the following bloc to testOnDemandRTSPServer: <br>{<br>      char const* tvServiceName = "tv";<br>      char const* inputAddressStr = "0";//unicast UDP source      <br>      Port const inputPort(1234);<br>
      unsigned char const inputTTL = 0;<br>      ServerMediaSession* sms<br>      = ServerMediaSession::createNew(*env, tvServiceName, tvServiceName,<br>                      descriptionString);<br>      sms->addSubsession(MPEG2TransportUDPServerMediaSubsession::createNew(*env,<br>
                inputAddressStr,inputPort,inputTTL,<br>                True));<br>      rtspServer->addServerMediaSession(sms);<br>      announceStream(rtspServer, sms,tvServiceName,tvServiceName);<br>      <br>  }<br>
<br>The new class is attached to this email.<br><br>Thanks.<br>-- <br>Achraf Gazdar<br>Associate Professor on Computer Science<br>Hana Research Unit, CRISTAL Lab.<br><a href="http://www.hanalab.org">http://www.hanalab.org</a><br>
Tunisia<br>
</div>