Hi,
I try to use the youtube iframe API (
https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player)
and I'm hitting a wall trying to communicate events from browser to server
that are not binded to a html element.
When instantiating a Youtube player, you specify a callback that will be
called once the player is ready : onPlayerReady(event)
I want to forward that event to the server so I can react accordingly. I
tried the following in boot.js:
function onPlayerReady(event) {
ws.send("test");
}
On the server side I binded a on_message_handler on the main window but no
luck, the server output a Dispatch Message Error followed by a
CONSTRAINT_ERROR - bad input for 'Value: "" to stdout everytime I send the
test string through the websocket.
I checked in the code for those outputted keywords but did not find
anything. (Still not sure how to do a full blown search in GPS yet ;)
Any help would be appreciated.
Thank you very much!
Olivier
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list