Skip to content

Instantly share code, notes, and snippets.

@vibhavsinha
Last active September 7, 2015 12:59
Show Gist options
  • Save vibhavsinha/e4a2c5f3235aafb4b2fd to your computer and use it in GitHub Desktop.
Save vibhavsinha/e4a2c5f3235aafb4b2fd to your computer and use it in GitHub Desktop.
Asynchronous vdocipher video embed code
<div id="vdo%OTP%" style="height:400px;width:640px;max-width:100%;"></div>
<script>
(function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);};
if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0];
a.async=1; a.src=e; m.parentNode.insertBefore(a,m);}
})(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo');
vdo.add({
o: "%OTP%",
});
</script>
@vibhavsinha
Copy link
Author

The height of the div will automatically adjust in case the width is restricted and will keep the same aspect ratio as defined by the style.height and style.width parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment