Skip to content

Commit 3a866d8

Browse files
authored
docs: adds missing readyState binding (#495)
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.
1 parent 6373fc6 commit 3a866d8

File tree

1 file changed

+2
-1
lines changed
  • content/tutorial/02-advanced-svelte/05-bindings/03-media-elements

1 file changed

+2
-1
lines changed

content/tutorial/02-advanced-svelte/05-bindings/03-media-elements/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ When the track ends, be kind — rewind:
6363
/>
6464
```
6565

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

6868
- `duration` (readonly) — the total duration of the video, in seconds
6969
- `buffered` (readonly) — an array of `{start, end}` objects
7070
- `seekable` (readonly) — ditto
7171
- `played` (readonly) — ditto
7272
- `seeking` (readonly) — boolean
7373
- `ended` (readonly) — boolean
74+
- `readyState` (readonly) — number between (and including) 0 and 4
7475

7576
...and five _two-way_ bindings:
7677

0 commit comments

Comments
 (0)