Skip to content

Commit

Permalink
docs: adds missing readyState binding (#495)
Browse files Browse the repository at this point in the history
Svelte added support for the `readyState` media element in
sveltejs/svelte#6843 . While the docs have
been updated to include this option, it was missing in the tutorial.
  • Loading branch information
baderj authored Sep 3, 2023
1 parent 6373fc6 commit 3a866d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ When the track ends, be kind — rewind:
/>
```

The complete set of bindings for `<audio>` and `<video>` is as follows — six _readonly_ bindings...
The complete set of bindings for `<audio>` and `<video>` is as follows — seven _readonly_ bindings...

- `duration` (readonly) — the total duration of the video, in seconds
- `buffered` (readonly) — an array of `{start, end}` objects
- `seekable` (readonly) — ditto
- `played` (readonly) — ditto
- `seeking` (readonly) — boolean
- `ended` (readonly) — boolean
- `readyState` (readonly) — number between (and including) 0 and 4

...and five _two-way_ bindings:

Expand Down

1 comment on commit 3a866d8

@vercel
Copy link

@vercel vercel bot commented on 3a866d8 Sep 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.