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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script src="//play.vidyard.com/v0/api.js"></script> | |
</head> | |
<body> | |
<a href="" id="playvideo">Play video</a><br /><br /> | |
<script type="text/javascript" id="vidyard_embed_code_VTYj3v6rf7JsXhwYhJRZ4A" src="//play.vidyard.com/VTYj3v6rf7JsXhwYhJRZ4A.js?v=3.1&type=inline"></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
<html> | |
<head> | |
<script src="//play.vidyard.com/v0/api.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript" id="vidyard_embed_code_hsEU_eBjTeQ1Wk1NxIF99w" src="//play.vidyard.com/hsEU_eBjTeQ1Wk1NxIF99w.js?v=3.1&type=inline"></script> | |
<script type="text/javascript"> | |
var video = new Vidyard.player("hsEU_eBjTeQ1Wk1NxIF99w"); | |
var paused = 0; | |
video.on("play", 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
<htmL> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
function getEmbedCode(uuid) { | |
var script=document.createElement('script'); | |
script.type='text/javascript'; | |
script.id='vidyard_embed_code_'+uuid; | |
script.src='https://play.vidyard.com/'+uuid+'.js?v=3.1&type=inline'; | |
return script; |
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> | |
<script src="//play.vidyard.com/v0/api.js"></script> | |
<script> | |
function httpGet(theUrl) { | |
var xmlHttp = null; | |
xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", theUrl, false ); | |
xmlHttp.send( null ); | |
return xmlHttp.responseText; |
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
/***** | |
Purpose: | |
This code detects all inline embedded Vidyard players on a page and sets up the necessary event | |
listeners allowing you to execute code on the standard Vidyard player API events such as play, | |
pause, ready, etc. The script will also calculate when 0, 25, 50, 75 and 99 percent of a chapter | |
has been viewed and allow you to execute code at these points. | |
Usage: | |
This script should be included below the Vidyard API, web analytics tracking code (if applicable) and | |
all Vidyard embedded players. You can use the following line example to include it: |
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
<!-- | |
The code below is a page with two embedded players. The player in the div "video-1" DOES NOT have a popout CTA on it. The player in the div "video-2" DOES have a CTA on it. | |
We have used media queries to separate the CSS into two branches. They have been labeled "Desktop CSS" and "Mobile CSS" in the comments. You can see that the split occurs when the screen width dips below 972px. | |
This is calculated by taking the maximum width of your player and adding enough pixels to cover the width of your CTA. By default this is 331px, which accounts for 300px plus a 31px border. In our example, the player is 640px so 640+331=971px. | |
*** You will likely need to change the value of 972px in BOTH media queries to accommodate the dimensions and layout of your page. Again, this should be the maximum width of your player + the width of your CTA *** | |
Your page must allow sufficient space in the iframe for both the player and the popout CTA when the CTA enabled player is visible. | |
I have done my best to comment the relevant |
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> | |
<style type="text/css"> | |
#innerContainer { | |
position: relative; | |
display: block; | |
width: 100% !important; | |
height: 0; | |
padding: 56.25% 0 0 0; /* This should reflect your video aspect ratio */ | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" id="vidyard_embed_code_XXXXXXXXXXX" src="//play.vidyard.com/XXXXXXXXXXX.js?v=3.1&type=lightbox"></script> | |
<script type="text/javascript"> | |
window.onload = function() { | |
var a = document.getElementById("videoLink"); | |
a.onclick = function() { | |
fn_vidyard_XXXXXXXXXXX(); | |
/* Where XXXXXXXXXXX is the UUID of the player. If the UUID contains a '-' | |
(e.g. XXXXXX-XXXXX) replace it with a '$' in the function call |
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> | |
</head> | |
<body> | |
<!-- By default, the pop-out CTA is 300px wide. You might want to set the div width and height to allow for a border --> | |
<div style="width:260px; height:250px;"> | |
<!-- Sample HTML form. Can be replaced with a form from your favourite MAP (e.g. Hubspot, Silver Pop, etc.) --> | |
<form> | |
<table> | |
<tr> |
OlderNewer