-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add webRTCgui #130
add webRTCgui #130
Conversation
Thanks! |
Thanks for the hint with demon widgets. I did not know the existence of your quark, would have saved me some work :/ Maybe it would be time to do something about #117?:) Comparing it I would assume the difference is on the choices of frameworks: my quark relies on Docker, Vue, SocketIO, Vuetify and Typescript to do the lifting which has such benefits as a very simple setup and also mobile friendly. I really found that typescript is a godsend when sending around messages and really helps me to keep the code compact. I am still not sure how to reflect the creation of the GUI elements - the SC way is proven but I also found the way of writing GUI elements a bit verbose. But would be also awesome to create something which can replace the existing GUI in-place. |
My objective was to get as close as possible to existing GUI classes. One idea I had was that one could take the regular GUI code (i.e. a |
On a closer look: Did you use it via the internet or just within the local network? The blocks are there in your project but I have not found you mentioning something. My main motivation is to distribute and sync a GUI via the internet on smartphones via a QR code, see https://remote.dennis-scheiba.com. Another alternative could be to only replace the (
w = Window();
v = VLayout(*4.collect({Button()}));
w.layout = v;
w.front;
) one could write (
w = WebWindow();
v = VLayout(*4.collect({Button()}));
w.layout = v;
w.publish;
) And |
I used it on a computer with public IP in a few projects, though it was never stress tested for hundreds/thousands of connections (and would most likely not perform well in that regard). It was used by at least one person for an art installation where audience was asked to connect to some address/ip on their devices. I also did not implement any security, as local network was my primary use case (though I was planning to add some sort of authentication eventually). Particularly, I was not interested in the idea of separately running a daemon/bridge, since in my use case I wanted it to "just work" from within SC, with no additional setup. SC's Layout stuff is provided by Qt so there's no way to leverage that easily. IIRC @mtmccrea implemented some basic layout functionality in sclang for WsGUI ( |
Adds https://github.com/capital-G/webRTCgui