i am trying to loop back video stream from mediasoup to gstreamer.
mediasoupTransport ----> gstremer ------> mediasoupTransport.
i have created two transport
one on which gstreamer can listen for the incomming rtp stream and another
on whcih gstreamer will send the rtp stream back.
i can recive the video stream in gstreamer and gstreamer is sending the stream back to another port (8003).
( i confirmed that gstreamer is sending back the data by using a gstreamer pipeline to display the data comming from the port)
but i cannot receive any data back on the receiving transport in mediasoup
const RecrtpTransport = await router.createPlainRtpTransport ( {
listenIp : '127.0.0.1',
rtcpMux : false,
comedia : false
});
await RecrtpTransport.connect({
ip: '127.0.0.1',
port: 8003,
rtcpPort: 8009
});
rtpProduce = await RecrtpTransport.produce({
kind : 'video',
rtpParameters :
{
codecs :
[
{
mimeType : 'video/VP8',
clockRate : 90000,
payloadType : 101,
rtcpFeedback : [ ]
}
],
encodings : [ { ssrc: 21233452222 } ],
},
paused: true
}
);
stats
this.RecrtpTransport => [
{
“bytesReceived”: 0,
“bytesSent”: 0,
“comedia”: false,
“multiSource”: false,
“probationBytesSent”: 0,
“probationSendBitrate”: 0,
“recvBitrate”: 0,
“rtcpMux”: false,
“rtcpTuple”: {
“localIp”: “127.0.0.1”,
“localPort”: 44595,
“protocol”: “udp”,
“remoteIp”: “127.0.0.1”,
“remotePort”: 8009
},
“rtpBytesReceived”: 0,
“rtpBytesSent”: 0,
“rtpRecvBitrate”: 0,
“rtpSendBitrate”: 0,
“rtxBytesReceived”: 0,
“rtxBytesSent”: 0,
“rtxRecvBitrate”: 0,
“rtxSendBitrate”: 0,
“sendBitrate”: 0,
“timestamp”: 10977700,
“transportId”: “656d975e-b13d-4359-ade7-4f5f53992751”,
“tuple”: {
“localIp”: “127.0.0.1”,
“localPort”: 49748,
“protocol”: “udp”,
“remoteIp”: “127.0.0.1”,
“remotePort”: 8003
},
“type”: “plain-rtp-transport”
}
]