On Sat, Oct 17, 2009 at 1:43 PM, maxsap <[email protected]> wrote:

> Hello to all, I have a question about the gadget api.
> the gadget has shared state wright? this means that if i make a
> playback gadget and some user in a wavelet plays a file from that
> gadget all the users in  the wavelet will hear the sound? or if the
>

The gadgets share state, but they have to be written in such a way that they
work from that persisted state, rather than directly with user events.  In
other words, if a gadget responds to a button's click event, and starts
playback, the other instances of that gadget will never see it, because no
state change was written to the wave.  If, instead, the button's click event
simply wrote a "current state = play" state change to the wave, and the
gadgets listened for those state changes to decide what state they should be
in, then each instance of the gadget would react to that press of the
button.

David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to