Howler.js how to play HTML5 file with preload of metadata

Well, I didn’t do anything special to set it up, here’s some snippets of my plugin:

Note: you’ll obviously have to replace parameters with however you’ve done it.

Setup:

        this.howl = new Howl({
          src: [options.url],
          html5: true,
          preload: true,
          onend: () => {
            this.playbackEnded = true;
          }
        });

Seek:

  async seek(options: { milliseconds: number }): Promise<void> {
    this.log("seek", options);
    this.howl.seek(options.milliseconds / 1000);
    return;
  }