fix a bug where the loading icon would not disappear after seeking
This commit is contained in:
parent
bb6af0ad41
commit
dec0832de6
1 changed files with 13 additions and 6 deletions
|
@ -754,10 +754,10 @@ Ox.VideoPlayer = function(options, self) {
|
|||
mouseenter: function() {
|
||||
$(this)
|
||||
.css({
|
||||
backgroundImage: '-moz-linear-gradient(top, rgba(64, 64, 64, 0.5), rgba(0, 0, 0, 0.5))'
|
||||
backgroundImage: '-moz-linear-gradient(top, rgba(48, 48, 48, 0.5), rgba(16, 16, 16, 0.5))'
|
||||
})
|
||||
.css({
|
||||
backgroundImage: '-webkit-linear-gradient(top, rgba(64, 64, 64, 0.5), rgba(0, 0, 0, 0.5))'
|
||||
backgroundImage: '-webkit-linear-gradient(top, rgba(48, 48, 48, 0.5), rgba(16, 16, 16, 0.5))'
|
||||
})
|
||||
},
|
||||
mouseleave: function() {
|
||||
|
@ -1493,17 +1493,24 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
|
||||
function seeked() {
|
||||
Ox.print('XX seeked')
|
||||
clearTimeout(self.seekTimeout);
|
||||
self.seekTimeout = 0;
|
||||
Ox.print('XX hide')
|
||||
hideLoadingIcon();
|
||||
self.$playIcon && self.$playIcon.show();
|
||||
}
|
||||
|
||||
function seeking() {
|
||||
Ox.print('XX seeking')
|
||||
if (!self.seekTimeout) {
|
||||
self.seekTimeout = setTimeout(function() {
|
||||
self.$playIcon && self.$playIcon.hide();
|
||||
Ox.print('XX show')
|
||||
showLoadingIcon();
|
||||
}, 250);
|
||||
}
|
||||
}
|
||||
|
||||
function setPosition(position, from) {
|
||||
position = Ox.limit(position, self['in'], self['out']);
|
||||
|
|
Loading…
Reference in a new issue