Skip to content

Instantly share code, notes, and snippets.

@andywaplinger
Last active May 15, 2020 10:39
Show Gist options
  • Save andywaplinger/39338778866b4a9883e61ef8efc8e5c9 to your computer and use it in GitHub Desktop.
Save andywaplinger/39338778866b4a9883e61ef8efc8e5c9 to your computer and use it in GitHub Desktop.
Wistia Embed with Custom Thumbnail
<script>
window._wq = window._wq || [];
_wq.push({
id: "YOUR_WISTIA_VIDEO_ID",
options: {
"stillUrl": "URL_TO_HOSTED_IMAGE.gif" // Make sure the image is the same aspect ratio and ideally full-resolution
}
});
</script>
<script src="https://fast.wistia.com/embed/medias/YOUR_WISTIA_VIDEO_ID.jsonp" async></script>
<script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>
<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_YOUR_WISTIA_VIDEO_ID videoFoam=true" style="height:100%;width:100%">&nbsp;</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment