|
|
|
@ -4,7 +4,7 @@ title: Media elements
|
|
|
|
|
|
|
|
|
|
|
|
The `<audio>` and `<video>` elements have several properties that you can bind to. This example demonstrates a few of them.
|
|
|
|
The `<audio>` and `<video>` elements have several properties that you can bind to. This example demonstrates a few of them.
|
|
|
|
|
|
|
|
|
|
|
|
On line 116, add `currentTime={time}`, `duration` and `paused` bindings:
|
|
|
|
On line 62, add `currentTime={time}`, `duration` and `paused` bindings:
|
|
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
```html
|
|
|
|
<video
|
|
|
|
<video
|
|
|
|
@ -41,4 +41,4 @@ The complete set of bindings for `<audio>` and `<video>` is as follows — six *
|
|
|
|
* `volume` — a value between 0 and 1
|
|
|
|
* `volume` — a value between 0 and 1
|
|
|
|
* `muted` — a boolean value where true is muted
|
|
|
|
* `muted` — a boolean value where true is muted
|
|
|
|
|
|
|
|
|
|
|
|
Videos additionally have readonly `videoWidth` and `videoHeight` bindings.
|
|
|
|
Videos additionally have readonly `videoWidth` and `videoHeight` bindings.
|
|
|
|
|