Skip to content

Instantly share code, notes, and snippets.

@rvizena
Last active April 23, 2020 22:26
Show Gist options
  • Save rvizena/5467816c1e6fb2fdf7f35255343eaa7b to your computer and use it in GitHub Desktop.
Save rvizena/5467816c1e6fb2fdf7f35255343eaa7b to your computer and use it in GitHub Desktop.
HTML5 Video - Remove controls, Mute audio (for Chrome), autoplay inline for ios, onplaying for Safari controls, Bootstrap Glyphicons for icons
<video id="myVideo" muted autoplay loop playsinline onplaying="this.controls=false" poster="/images/my-image.jpg" style="pointer-events: none;">
<source src="/path/to/files/video.mp4">
Your browser does not support the video tag.
</video>
<div class="fpButtons">
<button class="btn btn-default btn-sm pause" type="button" >
<span class="glyphicon glyphicon-pause" aria-hidden="true"></span>
</button>
<button class="btn btn-default btn-sm play" type="button" style="display:none;">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
</button>
</div>
@rvizena
Copy link
Author

rvizena commented Apr 22, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment