I'm using Kurento Media Server 6.0 as MCU to do one-to-many communication. I'm trying to renegotiate the SDP for mediaStreams switching. For this I'm using following code :
Let webRtcEndPoint is the created endPointUser on certain MediaPipeline
webRtcEndPoint.processOffer(sdpOffer, function(error, _sdpAnswer) {
if (error) {
console.log("SdpOffer not accepted by kurento");
return console.log(error);
}
console.log(_sdpAnswer);
});
It is returning error
{ [Error: Endpoint already negotiated] code: 40208, data: { type: 'SDP_END_POINT_ALREADY_NEGOTIATED' } }
How could I renegotiate a user with Kurento Media Server without creating whole webrtcEndPoint( i.e. without creating whole new connection between user and Kurento Media Server)?
Sorry, but Kurento Media Server does not allow renegotiations yet. It's something that is in the roadmap from a long time ago but we did not find the time to implement it.
The only option now is to regenerate the WebRtcEndpoint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With