Skip to content

Instantly share code, notes, and snippets.

@jramsahai
Last active July 19, 2016 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jramsahai/83e69c2c06a949e4dc30 to your computer and use it in GitHub Desktop.
Save jramsahai/83e69c2c06a949e4dc30 to your computer and use it in GitHub Desktop.
The following JavaScript and HTML is required for embedding on an Eloqua landing page. Note that this is not required for embedding on an Eloqua HTML landing page.
<!--
Replace [UUID] with the UUID of the player you are attemping to embed.
To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/
-->
<div id="[UUID]">
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
// Replace [UUID] with the UUID of the player you are attemping to embed.
// To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/
var embedScript=document.createElement('script');
embedScript.type='text/javascript';
embedScript.id='vidyard_embed_code_[UUID]';
embedScript.src='//play.vidyard.com/[UUID].js?v=3.1.1&type=inline';
$(document).ready(function(){
$("#[UUID]").append(embedScript);
});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
// Replace [UUID] with the UUID of the player you are attemping to embed.
// To find the UUID of a player, see http://support.vidyard.com/articles/Public_Support/Find-the-UUID-for-your-player/
var embedScript=document.createElement('script');
embedScript.type='text/javascript';
embedScript.id='vidyard_embed_code_[UUID]';
embedScript.src='//play.vidyard.com/[UUID].js?v=3.1.1&type=lightbox';
$(document).ready(function(){
$("#[UUID]").append(embedScript);
/* When adding the UUID to the function name "fn_vidyard_[UUID]" in the line below, replace any dashes (-) with dollar signs ($) e.g. fn_vidyard_arlhtoDOr-y4rGm-eXnOFA becomes fn_vidyard_arlhtoDOr$y4rGm$eXnOFA */
$("#[UUID]").append("<div class='outer_vidyard_wrapper'><div class='vidyard_wrapper' onclick='fn_vidyard_[UUID]();'><img alt='Homepage video' width='360' src='//play.vidyard.com/[UUID].jpg?' /><div class='vidyard_play_button'><a href='javascript:void(0);'></a></div></div></div>");
});
</script>
@jtjantziVid
Copy link

This can also be used at current to embed in Act-On landing pages where the customer may not have a CNAME set up and therefore may not have access to embedding JS through the custom-content element

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