Skip to content

Instantly share code, notes, and snippets.

@sanjsanj
Last active June 10, 2018 06:45
Show Gist options
  • Save sanjsanj/a427ae99d2c5027ab79ebf249f125c03 to your computer and use it in GitHub Desktop.
Save sanjsanj/a427ae99d2c5027ab79ebf249f125c03 to your computer and use it in GitHub Desktop.
<amp-audio src="https://example.com/audio.mp3"
artwork="https://example.com/artwork.png"
title="Example audio" album="Album title" artist="Jane Doe"
height="50" width="auto" controls>
</amp-audio>
<amp-video autoplay
src="https://example.com/video.hls" <!-- HLS video src -->
poster="https://example.com/poster.png"
width="720" height="405" layout="responsive" artwork="artwork.jpg"
title="Example video" artist="Jane Doe"
controls>
<!-- fallback for no support -->
<div fallback>
<p>Your browser doesn't support HTML5 video.</p>
</div>
<!-- fallback for alternative MP4 and WEBM sources -->
<source type="video/mp4" src="https://example.com/video.mp4">
<source type="video/webm" src="https://example.com/video.webm">
</amp-video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment