Skip to content

Commit

Permalink
docs: fix a11y warning in media elements tutorial (#5523)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshad authored Oct 22, 2020
1 parent b9ac8c9 commit f3adbb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@
poster="https://sveltejs.github.io/assets/caminandes-llamigos.jpg"
src="https://sveltejs.github.io/assets/caminandes-llamigos.mp4"
on:mousemove={handleMousemove}
on:mousedown={handleMousedown}
></video>
on:mousedown={handleMousedown}>
<track kind="captions">
</video>

<div class="controls" style="opacity: {duration && showControls ? 1 : 0}">
<progress value="{(time / duration) || 0}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@
on:mousedown={handleMousedown}
bind:currentTime={time}
bind:duration
bind:paused
></video>
bind:paused>
<track kind="captions">
</video>

<div class="controls" style="opacity: {duration && showControls ? 1 : 0}">
<progress value="{(time / duration) || 0}"/>
Expand Down

0 comments on commit f3adbb2

Please sign in to comment.