I have created an HTML5 mailer which contains a video. Ideally I would like a user to click "play" and then the video should play within the mail client. Currently this is not working and the fall-back image is displayed, which contains a link to the video on a website. The video fails in both Gmail & Outlook. The HTML mailer includes videos in
.mp4 and
.ogg formats. Is there a better way of doing this and how widely is it supported? Seems to be supported better on Apple Mail & Outlook for Mac.
I have omitted the full HTML however, here is a excerpt of the video section:
<!DOCTYPE html>
<html>
<head>
<title>Video</title>
</head>
<body>
<video width="100" height="100" controls="controls">
<source src="http://www.example.com/video.mp4" type="video/mp4">
<source src="http://www.example.com/video.ogg" type="video/ogg">
<a href="http://www.example.com/video"><img width="100" height="100" src="http://www.example.com/image.jpg" alt="" /></a>
</video>
</body>
</html>
Thank you in advance for any assistance.