The code doesn't implement any reaction on value changes of the slider, it only reacts on heartbeats of the media object.