Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renegotiation in Kurento Media Server

Tags:

webrtc

kurento

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)?

like image 307
Akshay Rathore Avatar asked Feb 29 '16 08:02

Akshay Rathore


1 Answers

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.

like image 180
santoscadenas Avatar answered Nov 12 '22 21:11

santoscadenas