This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<h1>Choose your next video!</h1> | |
<div> | |
<a href="http://play.vidyard.com/EXAMPLE.html"> | |
The first video | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Include this script below: Google Analytics, Player Embed(s), and Vidyard API | |
Example Customer Implementations: | |
VidyardProgressEvents(function (result){console.log(result.event)}); | |
VidyardProgressEvents(function (result){console.log(result.event)}, [1,10,20,30,40,50,60,70,80,90]); | |
// Returns: | |
// result.event as integer | |
// result.chapter as integer | |
// result.player as a Vidyard player object | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript' src="//play.vidyard.com/v0/api.js"></script> | |
<script type='text/javascript' src="//play.vidyard.com/v1/progress-events.js"></script> | |
<script type='text/javascript'> | |
VidyardProgressEvents(function (result){ | |
if (result.event==1) { | |
dataLayer.push({ | |
event: 'vidyard', | |
eventCategory: 'video', | |
eventAction: "Play", | |
eventLabel: result.player.metadata.chapters_attributes[result.chapter].video_attributes.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Include this below all other code in your event --> | |
<script type='text/javascript'> | |
window.addEventListener("message", function(event) { | |
var ctaId = window.frameElement.id.split('_')[1]; | |
var playerId = window.frameElement.src.split('/'); | |
playerId = playerId[playerId.length-3]; | |
// only allow from domains that end in allowedDomains | |
if (!event.origin.match(/vidyard\.(dev|com)$/)) { return; } | |
if (typeof event.data !== 'string') { return; } | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- please note that the following code is not designed in a responsive manner | |
and will need to be adjusted to accomodate if desired --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
//define function to get the embed code based on the uuid | |
function getEmbedCode(uuid) { | |
var script=document.createElement('script'); | |
script.type='text/javascript'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function(){ | |
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function() { | |
$("input[type=submit]").click(function() { | |
API.closeCta({ disablePlay: true }); | |
}); | |
}); | |
</script><style type="text/css">.newsletter-signup { | |
position: relative; | |
max-width: 600px; | |
margin: 0 auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- <blockquote class="embedly-card" data-card-key="64e7e6b1d2ac4b3fa812d17b66e43c22" data-card-controls="0" data-card-image="http://az347637.vo.msecnd.net/3e9286d37fb94f72ba128eb8fe76d6be/Images/Products30126-445x593--1943498993.jpg" data-card-type="article"><h4><a href="http://www.laura.ca/30126-Jacquard-Printed-Pashmina-Scarf.aspx?gclid=CNusgJTPpc8CFQiqaQodAvwEoQ">Jacquard Printed Pashmina Scarf</a></h4><p>You'll love the purple accents on our classic pashmina scarf. The jacquard finish adds a chic feel for an effortless every-day essential. Imported 7030772-0859</p></blockquote><script async src="//cdn.embedly.com/widgets/platform.js" charset="UTF-8"></script> --><link href="https://fonts.googleapis.com/css?family=Oxygen" rel="stylesheet" /><style type="text/css">* { | |
font-family: Oxygen,Arial,"Helvetica Neue",Helvetica,sans-serif; | |
} | |
.wrapper { | |
margin: 10px; | |
} | |
.wrapper a { | |
color: blue; |