<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello All,<br><br></div>Sir as i am new to live 555 libraries i built your sample of "testMPEG2TransportStreamer.cpp" which stream from the file and was able to receive the stream.I saw that UDP packets are being streamed.<br>
</div>Then i went into your code :-<br><br> Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);<br></div>This function defined in GroupSock.cpp<br><b>Groupsock::Groupsock(UsageEnvironment& env, struct in_addr const& groupAddr,<br>
Port port, u_int8_t ttl)<br> : OutputSocket(env, port),<br> deleteIfNoMembers(False), isSlave(False),<br> fIncomingGroupEId(groupAddr, port.num(), ttl), fDests(NULL), fTTL(ttl</b>) {<br> addDestination(groupAddr, port);<br>
<br> if (!socketJoinGroup(env, socketNum(), groupAddr.s_addr)) {<br> if (DebugLevel >= 1) {<br> env << *this << ": failed to join group: "<br> << env.getResultMsg() << "\n";<br>
}<br> }<br><br></div>The <b>OutputSocket(env, port) function give call to function : Socket(env, port),<br><br></b></div><b>The socket function is defined like this:-<br>Socket::Socket(UsageEnvironment& env, Port port)<br>
: fEnv(DefaultUsageEnvironment != NULL ? *DefaultUsageEnvironment : env), fPort(port) {<br><br> fSocketNum = setupDatagramSocket(fEnv, port);//original<br>}<br><br><br></b></div><b>so i changed the socket function like this:-<br>
Socket::Socket(UsageEnvironment& env, Port port)<br> : fEnv(DefaultUsageEnvironment != NULL ? *DefaultUsageEnvironment : env), fPort(port) {<br> fSocketNum = setupStreamSocket(fEnv, port);<br> //fSocketNum = setupDatagramSocket(fEnv, port);//original<br>
}<br><br></b></div><b>To create TCP socket and recompile the library.Every thing works fine but i didn't get the streaming?<br></b></div><b>Can you explain why? and what to do to stream TCP packets not UDP ?<br></b></div>
<b><br><br>Thanks<br></b></div>