Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.