Skip to content

Instantly share code, notes, and snippets.

@lele85
Created March 25, 2020 08:35
Show Gist options
  • Save lele85/98412f48048c3d18603088d5884a7a2c to your computer and use it in GitHub Desktop.
Save lele85/98412f48048c3d18603088d5884a7a2c to your computer and use it in GitHub Desktop.
Spreaker Embed on AMPs
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>Embed Spreaker</title>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<!-- Import the amp-iframe component in the header. -->
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
<link rel="canonical" href="https://amp.dev/documentation/examples/components/amp-iframe/index.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<style>
amp-img img {
object-fit: cover;
}
</style>
</head>
<body>
<amp-iframe sandbox="allow-scripts allow-same-origin allow-popups" allowfullscreen frameborder="0" src="https://widget.spreaker.com/player?show_id=4117941&theme=dark&autoplay=false&playlist=show&cover_image_url=https%3A%2F%2Fd1bm3dmew779uf.cloudfront.net%2Fcover%2Fa1591295c3a58e83e66c7affa29dd5a2.jpg" height="400px" frameborder="0">
<amp-img layout="responsive" src="https://d1bm3dmew779uf.cloudfront.net/cover/a1591295c3a58e83e66c7affa29dd5a2.jpg" placeholder></amp-img>
</amp-iframe>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment