-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Media API rough edges #2879
New issue
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
Comments
hello maybe help you =) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The REPL appears to work in Svelte 5, but in general bound values should be treated as potentially undefined in a |
Hi, trying to play around Svelte, I'm having an issue with the media elements bindings, specifically
buffered
.REPL repro: https://svelte.dev/repl/021f1c1d512e49248347bfe746f037ad?version=3.4.3
Basically my issue is that I'm trying to setup a reactive variable that depends on the
buffered
property, but that fails on load, becausebuffered
is not yet instantiated? (maybe?)Like this (variables initialized outside the block):
On my machine I'm getting a:
proxy.js:135 TypeError: Cannot read property 'end' of undefined
with this kind of output:I've been able to find a workaround that is simply wrapping the
loadedPercent
assignment in an if block and then, the updating behavior seems correct.Looking in the repo I've found this #832 but this
TimeRanges
modification doesn't seem to happen in the current version, and if I were, an update to the docs would probably be nice.Am I doing something wrong or it is a bug?
The text was updated successfully, but these errors were encountered: