<div dir="ltr"><div><div>Hi all,<br><br></div>I have some doubts on how to use the OnDemandServerMediaSubsession class. I am actually using it (we defined a very simple extension of it adapted to our data source) to stream via RTSP without any issue, it works like charm. <br>
<br>Now I am trying to achieve is to be able to stream the same source via RTSP (to any client that connects to the rtsp url) and via an static RTP/RTCP session (by static I mean that I want the server to stream to an specific IP and port, passed as a command argument for instance)<i>. </i><br>
<br>I want to stream to the static destination usign the same Subsession (this way I expect to not have to worry about concurrent RTPSinks getting frames from the same source). At the moment I am using:<br><br>subsession->getStreamParameters(clientSessionId, addr, <br>
port, port + 1, -1, 0, 0, dstAddr, destinationTTL, <br> multicast, serverRTPPort, serverRTCPPort, streamState);<br><br>subsession->startStream(clientSessionId, <br>
streamState, NULL, NULL, rtpSeqNum, rtpTimestamp, NULL, NULL);<br><br>//where addr and port are the IP adress and port I want to stream to,
multicast is False, TTL = 255 adn streamState just a pointer where I
keep the StreamState reference for later use.<br><br></div><div>These two lines executes without failure, and debugging them I think they run as expected, but after executing it does not stream. I have the feeling I miss something else to actually start streaming, does anyone have a clue?<br>
<br></div><div>Thanks in advance for any hint,<br>David<br></div></div>