[Xerte] Xerte3: Two way binding

Peter Huppertz peter.huppertz at baselgovernance.org
Thu Jun 24 13:44:34 BST 2010


Unfortunately the VideoDisplayIcon does not show it's controlbar in my piece. Thus I decided to create the buttons and the slider on my own, using Xerte Icons. Now I want to bind the value of the slider to the playheadTime of my video and vice versa. In a first attempt I used the approach from the example folder:

BindingUtils.bindProperty(myVideo.videoDisplay, 'playheadTime', slider, 'value');

This works. If I also add

BindingUtils.bindProperty(slider, 'value', myVideo.videoDisplay, 'playheadTime');

the video stuck at the beginning.

I also tried adding @{myVideo.videoDisplay.playheadTime} to the value property of the slider which should establish a tow way binding, but this does not work at all.

Any idea?


==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19



More information about the Xerte mailing list