use of live555MediaServer as RTSPS streamer

BENMOUSSA Yahia - Contractor yahia.benmoussa at external.thalesgroup.com
Fri Dec 19 02:40:15 PST 2025


Classified as: {OPEN}

Hi,

We would like to use live555MediaServer as an RTSPS server which is more convenient than using testOndemandRTSPServer.

When setting live555MediaServer  with certificate paths (rtspServer->setTLSState()), it crashes  at
rtpSink->setupForSRTP(fMIKEYStateMessage, fMIKEYStateMessageSize, fSRTP_ROC) in OnDemandServerMediaSubsession::getStreamParameters() because of null pointer to fMIKEYStateMessage.

The following code was added to test fMIKEYStateMessage.

           if (fMIKEYStateMessage != NULL) {
                // Use the existing stream's MIKEY info to generate the SDP:
                rtpSink->setupForSRTP(fMIKEYStateMessage, fMIKEYStateMessageSize, fSRTP_ROC);
            } else {
                // Create new MIKEY info for this stream:
                fMIKEYStateMessage
                    = rtpSink->setupForSRTP(fParentSession->streamingIsEncrypted, fSRTP_ROC,
                                                 fMIKEYStateMessageSize);
               }

The crash disappears but the received packets are rejected by the client due to authentication errors.


Thank you for your support.

Yahia




{OPEN}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20251219/43b4793b/attachment.htm>


More information about the live-devel mailing list