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
I send the patched function (index coud be out of array)
Demuxer.prototype.seek = function(timestamp) { var index, seekPoint; if (this.format && this.format.framesPerPacket > 0 && this.format.bytesPerPacket > 0) { seekPoint = { timestamp: timestamp, offset: this.format.bytesPerPacket * timestamp / this.format.framesPerPacket }; return seekPoint; } else { index = this.searchTimestamp(timestamp); //fixed bottom line if (index>=this.seekPoints.length) index=this.seekPoints.length-1; return this.seekPoints[index]; } };
The text was updated successfully, but these errors were encountered:
I think in this place we need more checks. Your version give some errors too. At this time only my version can correct errors in this place:
Demuxer.prototype.seek = function(timestamp) { var index, seekPoint; if (this.format && this.format.framesPerPacket > 0 && this.format.bytesPerPacket > 0) { seekPoint = { timestamp: timestamp, offset: this.format.bytesPerPacket * timestamp / this.format.framesPerPacket }; return seekPoint; } else { index = this.searchTimestamp(timestamp); if (this.format) { do {if (index>0) {index=index-1;}} while ((((this.duration*(this.buffered/100))-(this.seekPoints[index].timestamp/this.format.sampleRate * 1000))<((this.buffered==100)?6000:10000)) && (index>0)); } else { if (index>99) index=99; } return this.seekPoints[index]; } };
Sorry, something went wrong.
i think i added also other little fixes in my version if you want i pass mime
No branches or pull requests
I send the patched function (index coud be out of array)
The text was updated successfully, but these errors were encountered: