wearecollins / MMI-Prototypes

Various prototypes for The Jim Henson Exhibition
0 stars 0 forks source link

[Architecture] Decide on scheme for OF + Browser #1

Open robotconscience opened 8 years ago

robotconscience commented 8 years ago

@quinkennedy Starting convo here to keep track of prototypes!

Tested so far:

Not tested

robotconscience commented 8 years ago

Update: Awesomium and Berkelium are RIP!

quinkennedy commented 8 years ago

FFMpeg Stream made me think of WebRTC. I remember seeing some native libraries for WebRTC support.

quickest of searches: https://github.com/roxlu/WebRTC

robotconscience commented 8 years ago

Cool, seems worth a look.

Looking today at just making a basic CEF browser with a Syphon overlay, as another route

robotconscience commented 8 years ago

Hm looking like overall stream into browser is still best bet!

I think we want to mix UI elements and the video in a way that'll be pretty tough to do otherwise. Have a few different things I've tried, but I think main options are: a) screw it, back to all OF b) stream away

Experimenting with WS streams as we speaketh.

quinkennedy commented 8 years ago

I can dig up the websocket video stream stuff from Paris if you need. The basic HTML version was pretty simple, I think if we need to re-size the incoming JPG then piping it to WebGL becomes faster... that's just from my memory, and probably changes considerably once you put DOM elements over the WebGL context.

Also, there are actually a few different communication options we have (I think these are all available on OSX):

  1. network sockets
  2. UNIX sockets
  3. named pipes

The latter two would probably require a browser extension

robotconscience commented 8 years ago

Cool, that could be worth a shot!

Websocketpp now works as a header-only lib, so super easy to use with OF et al. Might be simple to start with a more barebones/customized thing instead of going to the more general / wild zone of the streamer.

Let's think on it, talk more next week!

robotconscience commented 8 years ago

@quinkennedy posted two viable options: 1 - WKWebView (apple built-in webview) with Cocoa window version of OF

2 - WebSocket streamer

robotconscience commented 8 years ago

Link to quick websocket++ streamer: https://github.com/robotconscience/ofx_websocketpp_examples