|
|
|
@ -8,8 +8,8 @@ On line 116, add `currentTime={time}`, `duration` and `paused` bindings:
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<video
|
|
|
|
|
poster="http://svelte-assets.surge.sh/caminandes-llamigos.jpg"
|
|
|
|
|
src="http://svelte-assets.surge.sh/caminandes-llamigos.mp4"
|
|
|
|
|
poster="https://svelte-assets.surge.sh/caminandes-llamigos.jpg"
|
|
|
|
|
src="https://svelte-assets.surge.sh/caminandes-llamigos.mp4"
|
|
|
|
|
on:mousemove={handleMousemove}
|
|
|
|
|
on:mousedown={handleMousedown}
|
|
|
|
|
bind:currentTime={time}
|
|
|
|
@ -36,4 +36,4 @@ The complete set of bindings for `<audio>` and `<video>` is as follows — four
|
|
|
|
|
* `currentTime` — the current point in the video, in seconds
|
|
|
|
|
* `playbackRate` — how fast to play the video, where `1` is 'normal'
|
|
|
|
|
* `paused` — this one should be self-explanatory
|
|
|
|
|
* `volume` — a value between 0 and 1
|
|
|
|
|
* `volume` — a value between 0 and 1
|
|
|
|
|