How to fork web control ? (to control QLC+ from AS3 AIR app)
Posted: Sun Feb 14, 2016 6:42 am
Hi,
Firsly sorry for my english.
2 days i'm trying to send commands by "websocket" from a third app i'm developping... on Adobe Air (AS3)...
Sadly Air seems can't send OPEN DMX signal (without wasting one year to do it).
As I'm a QLC+ user : I hoped control QLC+ from my app... sadly too I don't know if any command car be recevied by QLC directly by the native process...
And as I'm a lucky guy Air don't seems to like send midi data... it would be too simple
That's why i'm trying to fork QLC web access page to send data as javascript does :
My code looks like this in AS3 (cleared)
_socket.connect("localhost", 9999); // it seems to works because if QLC is off or not in -W mode it throws an error
_socket.write("QLC+CMD|CH|1|69"); // my command string
_socket.flush(); // it sends data
I've cleaned the code over, but i've try it in UTF-8, unicode, bytes etc...
Either nothing happends, either i've a 400 Bad Request
As I just spent the night on it and my brain starts burnin', could you help me or just say me if it is only possible to accès QLC like that : "QLC+CMD|CH|1|69" ? Is there any controls of socket source that can explain I can't do it, or it's just because i'm a dumber ?
Thank you guys !
Sylvain
(I've even think my app could command a robotic hand which play real keyborad to controls QLC+ but I think there's a simplyest way to do it )
Firsly sorry for my english.
2 days i'm trying to send commands by "websocket" from a third app i'm developping... on Adobe Air (AS3)...
Sadly Air seems can't send OPEN DMX signal (without wasting one year to do it).
As I'm a QLC+ user : I hoped control QLC+ from my app... sadly too I don't know if any command car be recevied by QLC directly by the native process...
And as I'm a lucky guy Air don't seems to like send midi data... it would be too simple
That's why i'm trying to fork QLC web access page to send data as javascript does :
My code looks like this in AS3 (cleared)
_socket.connect("localhost", 9999); // it seems to works because if QLC is off or not in -W mode it throws an error
_socket.write("QLC+CMD|CH|1|69"); // my command string
_socket.flush(); // it sends data
I've cleaned the code over, but i've try it in UTF-8, unicode, bytes etc...
Either nothing happends, either i've a 400 Bad Request
As I just spent the night on it and my brain starts burnin', could you help me or just say me if it is only possible to accès QLC like that : "QLC+CMD|CH|1|69" ? Is there any controls of socket source that can explain I can't do it, or it's just because i'm a dumber ?
Thank you guys !
Sylvain
(I've even think my app could command a robotic hand which play real keyborad to controls QLC+ but I think there's a simplyest way to do it )