Sujeet Raman

Sujeet Raman

  • 804
  • 915
  • 334.5k

Error "Could not start video source in JavaScript WebRTC

May 20 2023 6:54 AM

I have encountered an issue while making cross-browser calls between User 1 (using Chrome) and User 2 (using Firefox). Whenever User 2 tries to call User 1, the Chrome console displays the following error message: "script.js: Error: Could not start video source and i cannot see my video and second user video but in chrome which i called from,i can see that video."

To provide some context, I have already granted permission to the microphone and camera in the browser settings of both User 1 and User 2.

both Chrome and Firefox versions you are using support the necessary WebRTC features and signaling server is functioning correctly and is properly handling the exchange of offer and answer

Interestingly, the same error message is observed when testing the reverse scenario, where User 1 (Chrome) initiates a call to User 2 (Firefox). The error consistently occurs in both cases.

It seems that the error is related to the video source and arises when attempting to establish the WebRTC connection between Chrome and Firefox browsers.

Any insights or suggestions on how to resolve this issue would be greatly appreciated.I am developing an application in nodejs-kurento-js

below code  i am getting error

user.rtcPeer = kurentoUtils.WebRtcPeer.WebRtcPeerSendonly(

        options,

        function (err) {

            if (err) {

                return console.error(err);

            }

            this.generateOffer(onOffer);

        }

    );

 


Answers (2)