Rtsp relay server with Onvif metadata

Hello eveyone,

I am trying to relay a live stream from an IP camera using GstRTSPServer.

The camera is connected with rtspsrc, and pads for video, audio, and Onvif metadata are added, so each is linked with rtppassthroughpay to make them payloads.

If the initial video, audio, and Onvif metadata arrive at the same time when connecting, the relay is successful.

However, if any of them arrive late, the relay will not be completed until all of them arrive.

In particular, Onvif metadata is only sent when an event occurs on the camera, so it times out.

Is there a way to start relaying without waiting for the Onvif metadata to arrive and also obtain the Onvif metadata that arrives later?

Best regards,

If gst_element_no_more_pads was called without waiting for Onvif metadata, it was possible to relay only the video and audio, but the client would not receive the Onvif metadata that was sent later.

Doesn’t anyone know the solution of the issue?
Thanks in advance.