Open robotconscience opened 8 years ago
Update: Awesomium and Berkelium are RIP!
FFMpeg Stream made me think of WebRTC. I remember seeing some native libraries for WebRTC support.
quickest of searches: https://github.com/roxlu/WebRTC
Cool, seems worth a look.
Looking today at just making a basic CEF browser with a Syphon overlay, as another route
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.
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):
The latter two would probably require a browser extension
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!
@quinkennedy posted two viable options: 1 - WKWebView (apple built-in webview) with Cocoa window version of OF
2 - WebSocket streamer
Link to quick websocket++ streamer: https://github.com/robotconscience/ofx_websocketpp_examples
@quinkennedy Starting convo here to keep track of prototypes!
Tested so far:
Not tested