Windows Media Player INTEGRATION

Windows Media Player INTEGRATION

Windows Media Player INTEGRATION Introduction This document describes steps for integrating Microsoft Window Media Players with Nielsen’s Combined Beacon library described in the “Combined Beacon JS API Integration” document. For Windows Media Player, we will use the “Native JavaScript mode” approach as described in that document. ggwmpxxx.js (where xxx is the version number) is our Event Handler library for Windows Media Player – simply including that typically automates data capture for core events like LoadVideo, Play and Pause. Prerequisites and Assumptions Knowledge of JavaScript and Windows Media Player. The document “Combined Beacon JS API Integration” is prerequisite reading. Implementation The following steps are required: 1. Include the Windows Media Player Event handler library like this: <script type="text/javascript" src=" http://secure-XX.imrworldwide.com/novms/js/2/ggwmpXXX.js"> </script> Note 1: “XX” is the Nielsen supplied country code for your region. For example, it is “us” for customers in USA. Note 2: “XXX” is the version number of the JS specific WMP handler. 2. Initialize clientid and other parameters like this (these values will be supplied to you by Nielsen): <script type="text/javascript"> var _nolggGlobalParams = { clientid: “ my Nielsen assigned client id ”, vcid: “ my Nielsen assigned vc id ”, cisuffix: ““, sfcode: "Nielsen assigned data node “, prod: " Nielsen assigned product code " }; </script> 3. Include and initialize Combined Beacon Javascript library for Native mode: <script type="text/javascript" src=" http://secure-XX.imrworldwide.com/novms/js/2/ggcmbXXX.js"> Copyright © 2009 The Nielsen Company. All rights reserved. V3.02.02 </script> Note 1: “XX” is the Nielsen supplied country code for your region. For example, it is “us” for customers in USA. Note 2: “XXX” is the latest version number of the general JS beacon. 4. Complete the initialization by including the following lines: <script> var canUseSWF = false; // forces native mode var uid = 0; var gg1 = new gg(); gg1.ggInitialize(_nolggGlobalParams,uid,canUseSWF); </script> Example In this section you will find a full example of the implementation section detailed previously, plus how to pass video meta-data to the API. Please amend references to http://secure- us.imrworldwide.com to your local Nielsen collection node. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body bgcolor="#ffffff"> <script type="text/javascript" src="http://secure- us.imrworldwide.com/novms/js/2/ggcmb353.js"></script> <script type="text/javascript" src=" http://secure- us.imrworldwide.com/novms/js/2/ggwmp301.js"></script> <script type="text/javascript"> /** * wmpTest.html * Code used to bridge Windows Media Player Events to Glance Guide Messages * * @author 9/12/2009, Kevin Gaynor: Original * Copyright (c) 2009 Glanceguide, Inc. All rights reserved. * http://glanceguide.com * Decompiling, reverse engineering, copying or unauthorized redistribution is prohibited. **/ var _nolggGlobalParams = { clientid:"" }; var canUseSWF = false; var uid = 0; var gg1 = new gg(); gg1.ggInitialize(_nolggGlobalParams,uid,canUseSWF); Copyright © 2009 The Nielsen Company. All rights reserved. V3.02.02 var createPlayer = true; var playerID = 'Player'; //id used to object; var queryInterval = 3; //interval used to query playstate in sec (2 is default) var playerWidth = "500"; var playerHeight = "400"; var params = {autoStart:true, uiMode:'Full', URL:'video.wmv'};//The video URL </script> <SCRIPT type="text/javascript"> var player = new ggWMP(gg1, createPlayer, playerID, queryInterval, playerWidth, playerHeight, params); function OnDSOpenStateChangeEvt(newState) { /* These are the settings that can be set before this call is made to post custom data to the reporting server. player.content = 'preroll','midroll','postroll' will indicate an ad to the reporting server player.content = "content" will indicate content to the reporting server player.metaData = {category:'data', subcategory:'data', imageurl:'data', title:'data', noskip:'true/false', censuscategory:'data'} */ player.content = “content”; player.metaData = {category:'Sports’, subcategory:'Football', imageurl:’http://server/img.jpg’, title:'EuroCup 2004', noskip:'false', censuscategory:'Sports'}; player.OnDSOpenStateChangeEvt(newState); } function OnDSPlayStateChangeEvt(NewState) { player.OnDSPlayStateChangeEvt(NewState); } function OnDSPositionChangeEvt(oldPosition, newPosition) { player.OnDSPositionChangeEvt(oldPosition, newPosition); } </SCRIPT> </body> </html> Copyright © 2009 The Nielsen Company. All rights reserved. V3.02.02 .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us