I found the problem... The Button class has a default click handler
that does this...
if (toggle)
{
setSelected(!selected);
event.updateAfterEvent();
}
So after the binding set the selected property to false, this handler
would set it back to true again.
In my progressive player, I had my own click handler on the button so
it prevented that problem. In my streaming player, I was using the
button down event so it was not preventing that default behavior.
--- In [email protected], "sleekdigital" <[EMAIL PROTECTED]> wrote:
>
> To make a simple play / pause button I bind the selected state of the
> button to the "playing" property of the VideoDisplay component. This
> works fine with progressive video, but for some reason when using
> streaming video the binding does not work correctly. Most of the time
> it does not set the selected state when the playing property changes.
> Anyone know why or how to fix this?
>