Hi, I'm trying to get the audio and video stream from a camera using RTSPClient and then publish a stream with audio and video and another stream with video only.<div><br></div><div>This is what I have:</div><div><br></div>
<div>I create a RTSPServer</div><div>I create two ServerMediaSession, sms_with_audio and sms_without_audio</div><div>RTSPClient connects to camera</div><div>I get the SDP</div><div>I build a MediaSession from the sdp</div>
<div>I iterate the subsessions, calling ServerMediaSession::addSubsession() for the video subsession on sms_with_audio and sms_without_audio and for the audio subsession on sms_with_audio</div><div>Then I add the SMSs to the RTSPServer</div>
<div>Call RTSPClient::playMediaSession</div><div>and finally start the event loop</div><div><br></div><div>My problem is that if I try to play the stream without audio, it freezes after a few seconds.</div><div><br></div>
<div>What could I be missing?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Manuel</div><div><br></div><div><br></div>