Use precalculated postion for timeElapsed

Fixes #77
This commit is contained in:
Jordan Eldredge 2014-12-03 18:55:06 -08:00
parent d8347a376d
commit 301dd4ef7e

View file

@ -100,7 +100,7 @@ Media = {
return this._buffer.duration;
},
timeElapsed: function() {
return this._context.currentTime - this._startTime;
return this._position;
},
timeRemaining: function() {
return this.duration() - this.timeElapsed();