Skip to content

Commit

Permalink
Improve demo video playback experience
Browse files Browse the repository at this point in the history
The demo video playback had a number of issues:

- Looping was confusing as it didn't make it clear when the video had
  ended.

- Playback was too fast. It was hard to follow some of the more complex
  examples at the default playback speed. Slowing this down makes it
  easier for all viewers to understand.
  • Loading branch information
mikelorant committed Jan 7, 2024
1 parent 41f586f commit c915865
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pages/before-you-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ video {
}
</style>

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/before-you-start.webm" type="video/webm">
</video>
6 changes: 3 additions & 3 deletions pages/do-the-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/do-the-change-feature1.webm" type="video/webm">
</video>

Expand Down Expand Up @@ -95,7 +95,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/do-the-change-feature2.webm" type="video/webm">
</video>

Expand Down Expand Up @@ -223,6 +223,6 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/do-the-change-new-commits.webm" type="video/webm">
</video>
6 changes: 3 additions & 3 deletions pages/fix-your-mistakes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/fix-your-mistakes-amend.webm" type="video/webm">
</video>

Expand All @@ -62,7 +62,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/fix-your-mistakes-restore.webm" type="video/webm">
</video>

Expand Down Expand Up @@ -96,6 +96,6 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/fix-your-mistakes-commit.webm" type="video/webm">
</video>
4 changes: 2 additions & 2 deletions pages/prepare-the-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/prepare-the-commit-squash.webm" type="video/webm">
</video>

Expand Down Expand Up @@ -128,7 +128,7 @@ layout: full
preload: false
---

<video autoplay controls loop>
<video autoplay controls onloadstart="this.playbackRate = 0.67;">
<source src="/videos/prepare-the-commit-update-message.webm" type="video/webm">
</video>

Expand Down

0 comments on commit c915865

Please sign in to comment.