Forums > MaxMSP

new HTML5 websocket/http server external

January 13, 2014 | 12:50 pm

this is the first version of an external that you can use to serve up a webpage as the front-end to your max patch. You can then communicate with each connected client’s web browser independently. Communication is bi-directional and uses HTML5 websockets, so it should be much better than old-skool approaches (e.g. continually polling the server for changes as done in my previous attempt at this maxwebcontrol). Also this server is written in C/C++ has a lot less overhead than net.loadbang.web which is done in mxj.

browser support is not great at the moment. It works best in Chrome. The example is not working well for me in firefox or safari on my mac, although it works ok in safari on my ipad.

https://github.com/olilarkin/wsserver/releases

please let me know how you get on.

oli


January 17, 2014 | 9:06 am

I have this IOS app that acts as an IP camera. You type in 1.2.3.4 or whatever into URL bar and voila, video feed from the iPad. Problem is, this IP address is the full package so I can’t have a qt.movie "read" it. I do know that it’s based on WebSocket, though I’m not quite sure what that means. Will this external help me to translate the websocket video into something Jitter can use by chance?


January 18, 2014 | 4:24 am

no this external is for embedding a web server into your max patch. I don’t know the details of your ios app, but i guess it is running it’s own embedded web server, and websockets are used to send the video data to the connected clients.

if you need to get streams from ip cameras into jitter, perhaps something here will help: http://cycling74.com/search-results/?q=IP%20camera


February 20, 2014 | 11:53 pm

This looks great, thanks for sharing. I will let you know how my experience goes!



dtr
February 21, 2014 | 1:58 am

Good stuff! I have no direct application for it right now but nice to have in the toolbox :)



dtr
February 21, 2014 | 2:00 am

Btw, the connect button in the example didn’t have a label in Firefox27.0.1 but it did in Safari. OSX10.7.5.


February 21, 2014 | 4:31 am

Oli this is fantastic, great work!


Viewing 7 posts - 1 through 7 (of 7 total)