UnityWorks! Media Wiki

UWM jQuery Integration - ADP Integration

Modified: 2010/02/25 19:53 by admin - Categorized as: Integration
   Integration Information:

The jQuery integration for UnityWorks! Media consists of various code snippets to generate the working product. The service is composed of JavaScript, jQuery functionality and Web Services hosted by UnityWorks! Media.

   Integration Process:

The following code is recommended to be place within the BODY tags of the html document. The highlighted ### ID will be provided to you by UnityWorks! Media as a CTX id.

Integration Code
<!-- UWM - ADP Integration -->
<script type="text/javascript" src="http://www.dealervideos.com/scripts/jquery.js"></script>
<script type="text/javascript" src="http://www.dealervideos.com/scripts/jquery-ui-dialog.js"></script>
<script type="text/javascript" src="http://www.dealervideos.com/scripts/swfobject.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.dealervideos.com/css/uwm.dialog.css" />
<script type="text/javascript" src="http://www.dealervideos.com/integration.svc/script/###"></script>
<script type="text/javascript">
        var uwmWidth = 384;
        var uwmHeight = 288;
        function uwmGetVinArray() {
            var vin = vinParam.replace("&vin=","");
            var vinArray = new Array(vin);
            return vinArray;
        }
        function uwmVideoAvailableHandler(vehicle, ele) {
            uwmEmbedVideo(vehicle, ele);
        }
        function uwmVideoUnavailableHandler(vehicle, ele) {
           ele.hide();
        }
</script>
<script language="javascript" type="text/javascript" src="http://www.adpdm.com/vt/vtunityworks.js">
</script>

Once the code above has been implemented, please apply the following code anywhere within the BODY tags of the html document.

Content Notification
<div id="uwm_video"></div>

In addition, any valid html object is valid for use. The only requirement is to use an ID with the following value "uwm_video".

   Player Video Resize Option:

Player size will automatically adjust to the size of the original video content. However, the player integration is completely customizable by declaring the following variables within the Integration Code snippet.

Integration Code Option
var uwmWidth = ###;
var uwmHeight = ###;

Please note: There is a minimum limit of 320 by 240. If these variables are wrongfully set, integration may not function correctly.

   Integration Notes:

If a jQuery build is already in use within the host website. Please remove the jQuery sources from the snippet above to reduce downloading times and any script conflicts. If the latest jQuery 1.3.2 is currently not in use, UnityWorks! Media suggests to download to prevent any script conflicts. You can find more information at jQuery.com

2008 UnityWorks! Media