Skip to content

Commit

Permalink
edited video playback speed
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalM04 committed Sep 10, 2024
1 parent d534bc0 commit 60e5e42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion project-details/rescue-mission-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2 class="portfolio-title" style="text-align: center;">Rescue Mission</h2>
<div class="swiper-wrapper align-items-center">

<div class="swiper-slide">
<video class="swiper" controls playsinline autoplay loop muted poster="../assets/img/projects/rescue-mission/thumbnail.png">
<video id="myVideo" class="swiper" controls playsinline autoplay loop muted poster="../assets/img/projects/rescue-mission/thumbnail.png">
<source src="../assets/docs/sample-run.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Expand All @@ -74,6 +74,10 @@ <h2 class="portfolio-title" style="text-align: center;">Rescue Mission</h2>
}
}
</style>

<script>
document.getElementById('myVideo').playbackRate = 2.0;
</script>
</div>
<div class="swiper-pagination"></div>
</div>
Expand Down

0 comments on commit 60e5e42

Please sign in to comment.