Commit fb0efd1b by Valera Rozuvan

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

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