We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when you set currenttTme=0 before file is started there is a exception
fix is here
Player.prototype.seek = function(timestamp) { var ref; if ((ref = this.device) != null) { ref.stop(); } if (this.queue) { this.queue.once('ready', (function(_this) { return function() { var ref1, ref2; if ((ref1 = _this.device) != null) { ref1.seek(_this.currentTime); } if (_this.playing) { return (ref2 = _this.device) != null ? ref2.start() : void 0; } }; })(this)); timestamp = (timestamp / 1000) * this.format.sampleRate; timestamp = this.asset.decoder.seek(timestamp); this.currentTime = timestamp / this.format.sampleRate * 1000 | 0; this.queue.reset(); return this.currentTime; } else return 0 };
The text was updated successfully, but these errors were encountered:
@publicocean0 thank you very much! Right format version:
Player.prototype.seek = function(timestamp) { var ref; if ((ref = this.device) != null) { ref.stop(); } if (this.queue) { this.queue.once('ready', (function(_this) { return function() { var ref1, ref2; if ((ref1 = _this.device) != null) { ref1.seek(_this.currentTime); } if (_this.playing) { return (ref2 = _this.device) != null ? ref2.start() : void 0; } }; })(this)); timestamp = (timestamp / 1000) * this.format.sampleRate; timestamp = this.asset.decoder.seek(timestamp); this.currentTime = timestamp / this.format.sampleRate * 1000 | 0; this.queue.reset(); return this.currentTime; } else return 0; };
Sorry, something went wrong.
No branches or pull requests
when you set currenttTme=0 before file is started there is a exception
fix is here
Player.prototype.seek = function(timestamp) {
var ref;
if ((ref = this.device) != null) {
ref.stop();
}
if (this.queue) {
this.queue.once('ready', (function(_this) {
return function() {
var ref1, ref2;
if ((ref1 = _this.device) != null) {
ref1.seek(_this.currentTime);
}
if (_this.playing) {
return (ref2 = _this.device) != null ? ref2.start() : void 0;
}
};
})(this));
timestamp = (timestamp / 1000) * this.format.sampleRate;
timestamp = this.asset.decoder.seek(timestamp);
this.currentTime = timestamp / this.format.sampleRate * 1000 | 0;
this.queue.reset();
return this.currentTime;
} else return 0
};
The text was updated successfully, but these errors were encountered: