It looks like TimeTrait dispatches three events, TimeEvent.DURATION_CHANGE, TimeEvent.COMPLETE and TimeEvent.CURRENT_TIME_CHANGE. Using the OSMFPlayer distributed with the sprint 10 release I see the duration and complete events firing, but not the current time event. I have double checked that the currentTimer property of the time trait is actually changing, but there's definitely no event. Is this a bug?
As a side note, the Chrome controlbar widget does not seem to use the CURRENT_TIME_CHANGE event at all. It updates the playhead by polling the time trait periodically for it's currentTime property.
This is exactly right trundell, the CURRENT_TIME_CHANGE isn't dispatched by the TimeTrait. It is however dispatched by the MediaPlayer. The frequency of the event is determined by the currentTimeUpdateInterval property on the MediaPlayer. We didn't dispatch this event from the TimeTrait in order to prevent multiple timers form being created for large compositions (timers are very resource intensive).
Ok that makes sense. Thanks.