fix current time while seeking
This commit is contained in:
parent
0494fd40cf
commit
bee3a142c3
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ window.VideoElement = function(options) {
|
||||||
function getCurrentTime() {
|
function getCurrentTime() {
|
||||||
var item = self.items[self.currentItem];
|
var item = self.items[self.currentItem];
|
||||||
var currentTime = self.seeking || self.loading
|
var currentTime = self.seeking || self.loading
|
||||||
? self.currentTime
|
? (self.currentTime - (self.options["in"] || 0))
|
||||||
: item ? item.position + self.video.currentTime - item['in'] - self.options["in"] : 0;
|
: item ? item.position + self.video.currentTime - item['in'] - self.options["in"] : 0;
|
||||||
return currentTime
|
return currentTime
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue