I have created the sdp using rtp end point but when i process this sdp using ffmpeg i got the following error.
webRtcEndpoint.processOffer(sdpOffer, function(error, sdpAnswer) {
if (error) {
stop(sessionId);
return callback(error);
}
if (presenter === null) {
stop(sessionId);
return callback(noPresenterMessage);
}
callback(null, sdpAnswer);
});
presenter.pipeline.create('RtpEndpoint',function(error, rtpEndpoint){
var sdp = 'v=0';
sdp += '\no=- 3641290734 3641290734 IN IP4 127.0.0.1';
sdp += '\ns=media server';
sdp += '\nc=IN IP4 127.0.0.1';
sdp += '\nt=0 0';
sdp += '\nm=audio -audio port- RTP/AVP 0';
sdp += '\na=rtpmap:0 PCMU/8000';
sdp += '\nm=video -video port- RTP/AVP 101';
sdp += '\na=rtpmap:101 H264/90000';
// rtpEndpoint.setMaxVideoRecvBandwidth(12000);
// rtpEndpoint.setMaxVideoSendBandwidth(12000);
rtpEndpoint.processOffer(sdp, function(error, sdpAnswer){
console.log('Offer:\n', sdp);
console.log('Answer:\n', sdpAnswer);
});
presenter.webRtcEndpoint.connect(rtpEndpoint);