Ronin icon indicating copy to clipboard operation
Ronin copied to clipboard

Using with Orca?

Open franciscod opened this issue 4 years ago • 2 comments

Seems like osc is dead as of 707f056649f0bb8d64d1ffeac2f55cdf27bef2f9, since the project migrated away from Electron.

How can we make Ronin interop with Orca again?

OSC is a good idea in my opinion. Maybe we could setup some kind of UDP<->WebSockets bridge?

Any ideas?

franciscod avatar Apr 13 '20 00:04 franciscod

That might be a good idea, but I don't know how to handle UDP over the browser without localhost.

neauoire avatar Apr 13 '20 03:04 neauoire

Communication between the Orca and Ronin pages, could potentially be achieved using the postmessage api, the caveat being that it requires either Orca or Ronin to open the tab/window for the other to obtain a refference to each other's Window objects. Or since localStorage is shared between pages of the same origin, it should be possible to create a a WebRTC DataChannel between the two pages, by sharing the Strings for the connection offer and answer on each side through the localStorage.

Window.postMessage should work even when using offline html files, but localStorage + WebRTC is potentially seemless when accessing both pages from hundredrabbits.github.io

bxwtf avatar Aug 27 '20 07:08 bxwtf