Commit fb0efd1b by Valera Rozuvan

Made it so that keyboard also prolongs auto hiding of controls.

parent 594ed6e0
......@@ -104,6 +104,8 @@
it('parse the videos if subtitles do not exist', function () {
var sub = '';
// !!
$('#example').find('.videoalpha').data('sub', '');
state = new window.VideoAlpha('#example');
......
......@@ -75,6 +75,7 @@ function () {
if (state.videoType === 'html5') {
state.el.on('mousemove', state.videoControl.showControls);
state.el.on('keydown', state.videoControl.showControls);
}
}
......
......@@ -109,6 +109,7 @@ function () {
if (this.videoType === 'html5') {
this.el.on('mousemove', this.videoCaption.autoShowCaptions);
this.el.on('keydown', this.videoCaption.autoShowCaptions);
// Moving slider on subtitles is not a mouse move,
// but captions and controls should be showed.
......
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