mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 19:13:54 +00:00
Add note about seekable
This commit is contained in:
parent
5c243949a5
commit
3b9e48ef80
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ export default class ElementSource {
|
|||
}
|
||||
|
||||
seekToTime(time) {
|
||||
/* TODO: We could check if this is actually seekable:
|
||||
const { seekable } = this._audio;
|
||||
for (let i = 0; i < seekable.length; i++) {
|
||||
console.log("start", seekable.start(i), "end", seekable.end(i));
|
||||
}
|
||||
*/
|
||||
this._audio.currentTime = clamp(time, 0, this.getDuration());
|
||||
this._emitter.trigger("positionChange");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue