How to set connection between chrome extension and browser using P2P/WebRTC

780 views Asked by At

What I have to do:

Using a Chrome Extension, send the response of chrome.tabs.captureVisibleTab (dataUrl) to another browser, without processing the base64 data on server. On this another browser, I will show the image to the user. This process will repeat every 3 seconds, approximately.

Possible solutions:

  • P2P/WebRTC: I'm using peerjs library and it works fine, except for a reason: WebRTC doesn't work in Safari.

  • WebServer: create a local WebServer with my extension, host the dateUrl and share. Problem: WebServer can only be created with Chrome Apps.

Does anyone have an ideia about how to solve any of my problems, or suggest another solution?

0

There are 0 answers