google-chromefirefoxwebrtcrtcmulticonnection

Bug with screen sharing with RTCMulticonnection from Chrome to Mozilla


I am creating p2p application to share video and screen from Chrome to Mozilla. When I work with Chrome on both sides, it works fine. But when Mozilla is receiving screensharing video, I get a problem.

To start screenshare I do the following in Chrome:

connection.addStream({screen: true, oneway: true}

On the client side I have this callback:

connection.onstream = function (e) {
 // handle input stream
}        

With Mozilla this callback is not launched, but I see flickering on my main webcam stream: few frames from webcam and few frames from screenshare continiously.

How can I fix this? Is this Mozilla bug?


Solution

  • My solution was migrating to SimpleRTC (http://simplewebrtc.com). This is same sort of library, but it is updated regularly to reflect browsers/API changes. The challange was signalling layer, because it uses special (opensource) library on top of socketio to handle chat rooms. But now screensharing works correctly.