Ensure "seeking" class not erroneously assigned if seek() finishes immediately.
// Seek within recording if slider is moved
positionSlider.onchange = function sliderPositionChanged() {
+ // Seek is in progress
+ player.className = 'seeking';
+
// Request seek
recording.seek(positionSlider.value, function seekComplete() {
});
- // Seek is in progress
- player.className = 'seeking';
-
};
})();
