Commit 5b1b73cb by Jay Zoldak

Merge pull request #702 from edx/peter-fogg/fix-captions-sync

Correctly seek in captions with non-1.0 speeds.
parents 6bc8d327 a5a6d2d5
......@@ -443,7 +443,7 @@
});
it('trigger seek event with the correct time', function() {
expect(videoPlayer.currentTime).toEqual(15);
expect(videoPlayer.currentTime).toEqual(14.91);
});
});
......@@ -455,7 +455,20 @@
});
it('trigger seek event with the correct time', function() {
expect(videoPlayer.currentTime).toEqual(15);
expect(videoPlayer.currentTime).toEqual(14.91);
});
});
describe('when the player type is Flash at speed 0.75x', function () {
beforeEach(function () {
initialize();
videoSpeedControl.currentSpeed = '0.75';
state.currentPlayerMode = 'flash';
$('.subtitles li[data-start="14910"]').trigger('click');
});
it('trigger seek event with the correct time', function () {
expect(videoPlayer.currentTime).toEqual(15);
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment