Page History: XSPF Player Stand Alone - Integration :: SWFObject v1.0
Compare Page Revisions
Page Revision: 2008/10/03 18:30
Application Overview –The Stand Alone Player (XSPF Player) is an online application that consumes a dynamic web service provided by Unity Works Media to display a flowing video content experience.
Integration – SWFObject v1.0The segment below will demonstrate a typical integration email sent from UnityWorks! Media as a SWFObject v1.0.
<SCRIPT src="http://www.dealervideos.com/xspfPlayer/swfObject.js" type=text/javascript></SCRIPT>
<div id="flashContent">
<SCRIPT type=text/javascript>
var flashMovie = new SWFObject("http://www.dealervideos.com/xspfPlayer/xspfPlayer.swf?
ctx=###&vid=###","xspfPlayer", "###", "###", "6", "#FFFFFF");
flashMovie.write("flashContent");
</SCRIPT>
</div>
Video content is determined by the values generated by UnityWorks! Media. These values are assigned to the
CTX and
VID variable locations. Other values such as
HEIGHT and
WIDTH will be adjusted by the predetermined content.
Integration will vary upon the specific request. However, attributes can be altered at the HTML level of the script. See
"Stand Alone Client Preferences” below for options. (Inserting cid pid vid data is supported if the complete xspf path is added. Please contact UnityWorks! Media for additional details).
Stand Alone Client Preferences – These options must to be inserted before the “.write” command and only after the “SWF Object” code line within the snippet above.
flashMovie.addVariable(“Option”,”Attribute”);
or as an addition to the location string...
"http://www.dealervideos.com/xspfPlayer/xspfPlayer.swf?ctx=###&vid=###&Option=Attribute"
Options and Attributes–
| Options |
Attributes |
Default |
Description |
| AutoStart |
true / false |
true |
Auto plays the video content. |
| DisplayUWMLogo |
true / false |
true |
Display of the UnityWorks! Media Logo. |
| Debug |
true / false |
false |
Debug mode. |
| ScrubbingEnabled |
true / false |
true |
Scrub video ability. |
| ControlBehavior |
Static / Rollover |
Rollover |
User controls. (Static requires an additional 30 pixels in height). |
| IsMuted |
true / false |
false |
Mute video. |
| FullScreen |
true / false |
false |
Fullscreen ability. |
| autoCarfax |
true / false |
true |
Automatically launches carfax information. |
| exeFunction |
none |
none |
Executes a simgle command once XSPF tracks are completed. |
| exeTarget |
none |
none |
Specifies the target of the exeFunction. |
| playerResize |
true / false |
false |
Controls aspect ratio and resize capability. |
Client Sizing– The player size can be determined by the content delivered. These values need to be hardcoded to prevent any integration issues. Please use the following table to determine sizing.
| Video Content |
Control Behavior* |
Pixel Change |
Correct Player Size |
| Schema: 5.1 , 5.2 |
Rollover |
N/A |
384 x 288 |
| Schema: 5.3 , 4.4 , 4.2 |
Rollover |
N/A |
320 x 240 |
| Schema: 9.0 |
Rollover |
N/A |
480 x 360 |
| Schema: 5.1 , 5.2 |
Static |
+30 pixels |
384 x 318 |
| Schema: 5.3 , 4.4, 4.2 |
Static |
+30 pixels |
320 x 270 |
| Schema: 9.0 |
Static |
+30 pixels |
480 x 390 |
(*) Please refer to the “Stand Alone Preferences”.
Embedding Video - If the application’s configuration has enabled “
SharingEnabled”, the player will launch a window where the user/client will have the ability of copying the current video code to an alternate host location. The shared generated code will have the original player settings coming from the UnityWorks! Media servers. If the original player attributes have been manually altered through the snippet, the generated code will ignore these settings and revert back to the original ones.
EXE Commands - The Stand Alone XSPF Player has the option of launching/executing a command once the playtracks have reached completion. The action can basically be anything, from a URL to a JavaScript function. Due to security issues, the allowScriptAccess is required for “_self” target commands. The integration application code below is required to have the following parameters for functionality:
flashMovie.addVariable("exeFunction","COMMAND");
flashMovie.addVariable("exeTarget","TARGET");
flashMovie.addParam("allowScriptAccess", "always");
Carfax Vehicle History Reports -The XSPF Player has the capability of displaying Carfax’s services. This option will be displayed on the lower area of the video upon user activation. It will only be activated if the specific vehicle video has a Carfax report. The user is also able to view a more extensive version of the report by clicking the Carfax tab or logo. The report delivered to the player has not been altered. Click the ( ) icon to close.