OpenVidu / openvidu-screen-sharing-chrome-extension

DEPRECATED: This extension is no longer needed for screen share with OpenVidu
Apache License 2.0
9 stars 4 forks source link

trying to follow steps for creating my own extension #2

Open rush86999 opened 5 years ago

rush86999 commented 5 years ago

So I followed the instructions and I am trying to get this work in my testing environment. I have forked a copy of openvidu-react and used the following code:

  joinSession() {
      this.OV = new OpenVidu();
      this.OV.setAdvancedConfiguration( { screenShareChromeExtension: "https://chrome.google.com/webstore/detail/not_relevant/akflaefcmhfnjnjadoebldoiakffdfdb" } );
    this.setState(
          {
              session: this.OV.initSession(),
          },
          () => {
              this.subscribeToStreamCreated();

              this.connectToSession();
          },
      );
  }

the steps mention to use the above procedure for testing purposes but it does not work. In openvidu-react the only place a new openvidu is called in that function. I believe this corresponds to calling openvidu-browser.

Any help is appreciated as it keeps telling me to install the openvidu chrome extension from the webstore.

In content_scripts of manifest.json I have included:

"http://localhost:3000/*"