Skip to content

Instantly share code, notes, and snippets.

@hteumeuleu
Created September 12, 2016 11:56
Show Gist options
  • Save hteumeuleu/826bfad2584bb72f44e5436a1f8605b4 to your computer and use it in GitHub Desktop.
Save hteumeuleu/826bfad2584bb72f44e5436a1f8605b4 to your computer and use it in GitHub Desktop.
Video Player example for Apple Mail in iOS 10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>iOS 10 video</title>
<style type="text/css">
@supports (-webkit-overflow-scrolling:touch) and (color:#ffffffff) {
.video-player { display:block !important; }
.video-fallback { display:none !important; }
}
</style>
</head>
<body style="Margin:0; padding:0; font:1em sans-serif; background:#fff;">
<div style="Margin:0 auto; max-width:600px;">
<div class="video-player" style="display:none;">
<video style="width:100%;height:auto;" autoplay muted playsinline loop>
<source src="https://i.imgur.com/FvJ5aP5.mp4" type="video/mp4" />
<a href="https://i.imgur.com/FvJ5aP5.gifv"><img src="http://i.imgur.com/EjaukAV.jpg" alt="" /></a>
</video>
</div>
<div class="video-fallback">
<a href="https://i.imgur.com/FvJ5aP5.gifv"><img src="http://i.imgur.com/EjaukAV.jpg" alt="" style="width:100%;height:auto;" /></a>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment