I’m trying to save in disk rtp packets received with DirectTransport from router to later send to different router.
I correctly receive rtp packets and save with it’s timestamp to disk.
My problem is when trying to send with DirectTransport and consumed with webRtcTransport, apparently packets are send correctly and received in browser side, but the video is never seen, the <video> element shows “loading” circle and no frame is played.
I save the rtp packets, the rtpParameters from original producer and I correctly check the consumer.canConsume with the producer asociated with directTransport.
I’ve also tried to send rtp packet from one router to other in realtime (without storing in disk) and the result it’s the same.
Also, I never receive a rtcp packet in the directTransport from the original producer.
Should this work?
I would like to know if I’m doing something wrong or if it can never work.
I’ve seen in mediasoup RTP Parameters documentation, that SVC is enabled when scalabilityMode is set in encodings array. I’ve tried to remove that value from the encoding object, and the error disapears, but I have no video. This is the rtpParameters used from consumer (removing the scalabilityMode):
I’v also tried to change then rtpParameters received from producer and remove all codecs except codec used by comsumer in it’s rtpParameters, the resulting rtpParameters is this: