Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Video Player example for Apple Mail in iOS 10
<!DOCTYPE html>
<html lang="en">
<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; }
<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="" type="video/mp4" />
<a href=""><img src="" alt="" /></a>
<div class="video-fallback">
<a href=""><img src="" alt="" style="width:100%;height:auto;" /></a>
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.