Start Forward RTP Videoroom Multistream

I user videoroom and foward rtp to streaming plugin; I work ok in only stream ( 1 video, 1 audio);
But when I add one video stream (mid = v2) ; It can’t forward to streaming.

I tried recording the video when creating the room (record = true) and realized it saved 2 video streams (v1, v2).
I don’t understand what parameters I’m missing when relaying rtp like this;
////
const rtpstartdata = {
room: confdata.room,
feed: confdata.feed,
video_port_2: 36468,
video_port: 40715,
audio_port: 5141,
secret: ‘adminpwd’,
host: “127.0.0.1”
}
const response = await janodeManagerHandle.startForward(rtpstartdata);
///
Looking forward to receiving your support, thanks for watching.

If you’re trying to forward a multistream (aka multi m-lines / mids) feed, then you need to use the streams attribute of the request. The video_port_2 is for (legacy API) simulcasting.

1 Like

Thank you very much; It’s work ok;

This is new rtpBody for somebody meet encountered similar problem
rtpstartdata {
room: 684271495053527,
feed: 1776201763580449,
secret: ‘adminpwd’,
host: ‘127.0.0.1’,
streams: [
{
type: ‘video’,
mindex: 0,
mid: ‘0’,
codec: ‘vp9’,
vp9_profile: ‘0’,
port: 40715
},
{
type: ‘audio’,
mindex: 1,
mid: ‘1’,
codec: ‘opus’,
fec: true,
port: 11779
},
{
type: ‘video’,
mindex: 2,
mid: ‘2’,
codec: ‘vp9’,
vp9_profile: ‘0’,
port: 36468
}
]
}