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

This commit is contained in:
Valera Rozuvan
2013-08-07 11:06:46 +03:00
parent 594ed6e0c3
commit fb0efd1b16
3 changed files with 4 additions and 0 deletions

View File

@@ -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');

View File

@@ -75,6 +75,7 @@ function () {
if (state.videoType === 'html5') {
state.el.on('mousemove', state.videoControl.showControls);
state.el.on('keydown', state.videoControl.showControls);
}
}

View File

@@ -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.