Svelte: Media Element Binding for set currentTime is unreliable

Created on 7 Sep 2019  Â·  4Comments  Â·  Source: sveltejs/svelte

Describe the bug
The Media Element Binding for setting bind:currentTime={time} is unreliable when setting single times. For example a list of video position index markers. Clicking on an index, which sets the currentTime, doesn't always set the video position. Where as if I set currentTime via the DOM method then it does work every time.

To Reproduce
Here's a couple of examples the issue:
https://svelte.dev/repl/3470317362744bf296ae78b688445448?version=3.9.2
https://svelte.dev/repl/17fecf5e4b5449a79f7eda6abc480f19?version=3.9.2

bug

Most helpful comment

Released 3.10.1 with the fix — thanks!

All 4 comments

Awesome thanks @Rich-Harris - what is the release cycle for this as I'm "newish" to your PR -> master process. So I know when to upgrade my project and then I can feedback on the work am doing with this.

Released 3.10.1 with the fix — thanks!

I've downloaded the above example app from the REPL and built it locally with Svelte v3.12.0 and the issue seems to be resolved on Firefox and Chrome (latest builds, Windows 10).
When it comes to other videos from my local server, Chrome is fine but Firefox is back to the same issue as I demonstrated above. However when I set currentTime from the DOM it's ok.
_scratches head_ leave it with me, I'll report back in due course when I get to the bottom of this.
Thanks again

I'm also having this issue on Firefox 80.0.1 and Svelte v3.24.0, macOS 10.15.6. Works fine in Chrome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sskyy picture sskyy  Â·  3Comments

matt3224 picture matt3224  Â·  3Comments

plumpNation picture plumpNation  Â·  3Comments

Rich-Harris picture Rich-Harris  Â·  3Comments

mmjmanders picture mmjmanders  Â·  3Comments