UnityWorks! Media Wiki
Navigation
Main Page
Categories
All Pages
Login/Logout
Your Profile
Create Account
Language Selection
Create a new Page
Administration
File Management
Quick Search
Advanced Search »
Back
History
XSPFPlayer v3.0 - ActionScript Integration
<table align="center" width="650" height="32"><tr><td background="http://wiki.dealervideos.com/Images/uwmscreens/x.jpg"> '''<font color="#000000"> XSPF Player to ActionScript 3 Integration –</font>''' </td></tr></table> The XSPFPlayer is available for ActionScript 3 development. To use, please download the AS3 UWM library below. <center> [http://www.dealervideos.com/xspfPlayerComponent/UWM_XSPFPlayer_AS3Library.rar|<b><font color="brown">UWM_XSPFPlayer_AS3Library.rar</font> (AS3 Library)</b> - Download]<br> [http://www.dealervideos.com/xspfPlayerComponent/UWM_XSPFPlayer_AS3Library.zip|<b><font color="brown">UWM_XSPFPlayer_AS3Library.zip</font> (AS3 Library)</b> - Download] </center> To use, please import the XSPFPlayer library class into your AS3 project. {{{{ import com.unityworksmedia.xspfPlayer; }}}} Once imported into your class or project, create a new instance of the object and add the object into your stage. {{{{ <font color="gray">//xspfPlayer required variables CTX:String, VID:Number, xPos:Number, yPos:Number, w:Number, h:Number //Additional Settings - leave "" for default settings. Skin:String(color), AutoStart:String(Bool), ADF Contact Form:String(Bool), UWM Info Screen:String(Bool), UWM Watermark:String(Bool) </font> var _xspfPlayer:MovieClip = new xspfPlayer("<font color="red">'''CTX'''</font>",<font color="red">'''VID'''</font>,100,100,320,240,"","","","",""); addChild(_xspfPlayer); }}}} The UWM XSPFPlayer should render within your Flash project once published. The values required to access the class will require values from UWM and from your own preferences. ''Warnings:'' Host Frame Rate will affect the player's animation performance. <br>We suggested to have a frame rate of 25 or higher. <br>Security Sandbox Violations will occur during your integration cycle as cross domain situations come into play. UWM Watermark setting will be ignored if unless UWM Info Screen setting is activated. <table align="center" width="650" height="32"><tr><td background="http://wiki.dealervideos.com/Images/uwmscreens/x.jpg"> '''<font color="#000000"> XSPF Player to ActionScript 2 Integration –</font>''' </td></tr></table> The XSPFPlayer can be imported through AS2 into another AS2 environment. The example below will import the player into your main stage of the application. The CTX and VID values will be delivered by UWM. Other values can be changed upon preference. {{{{ <font color="gray">//- Following Values CTX & VID are Delivered by UWM -//</font> var ctxID:String = "<font color="red">'''CTX'''</font>"; var vidID:String = "<font color="red">'''VID'''</font>"; var xspfWidth:Number = 320; var xspfHeight:Number = 240; var xspfLocY:Number = 0; var xspfLocX:Number = 0; var AutoStart:Boolean = true; var Skin:String = ""; <font color="gray">//_root.PluginEnabled="false"; //additional setting //_root.DisplayUWLogo = "false"; //additional setting //_root.UWMmark = "true"; //additional setting</font> <font color="gray">//-UWM XSPFPlayer 3.0 -//</font> System.security.allowDomain("*");_root.AutoStart=AutoStart;_root.ctx = ctxID;_root.vid = vidID; _root.NVP=true;_root.addOnComponent=true;this.createEmptyMovieClip("xspfPlayer", 100); this["xspfPlayer"].loadMovie("http://www.dealervideos.com/xspfPlayer/xspfPlayer.swf"); _root.playerWidth=xspfWidth;_root.Skin=Skin;_root.playerHeight=xspfHeight;this["xspfPlayer"]._x=xspfLocX; this["xspfPlayer"]._y=xspfLocY; }}}} The code above can be altered to fit within your project scenario. <table align="center" border="1" cellpadding="5" width="600"> <tr> <td bgcolor="#CCCCCC" width="100"><font color="brown">'''Variable '''</font></td> <td bgcolor="#CCCCCC"><font color="brown">'''Values'''</font></td> <td bgcolor="#CCCCCC"><font color="brown">'''Description'''</font></td> </tr> <tr> <td>'''ctxID'''</td> <td>## (String)</td> <td>Required - Team Identifier Value will be provided by UWM</td> </tr> <tr> <td>'''vidID'''</td> <td>## (Num)</td> <td>Required - Video Identifier Value will be provided by UWM</td> </tr> <tr> <td>'''xspfWidth'''</td> <td>### (Num)</td> <td>Video Width</td> </tr> <tr> <td>'''xspfHeight'''</td> <td>### (Num)</td> <td>Video Height</td> </tr> <tr> <td>'''AutoStart'''</td> <td>true,false (Boolean)</td> <td>Video auto play</td> </tr> <tr> <td>'''xspfLocX'''</td> <td>0 (Num)</td> <td>Player X coordinates</td> </tr> <tr> <td>'''xspfLocY'''</td> <td>0 (Num)</td> <td>Player Y coordinates</td> </tr> <tr> <td>'''Skin'''</td> <td>"" (String)</td> <td>Please see XSPF Specs for all available colors.</td> </tr> </table> Additional Settings: <table align="center" border="1" cellpadding="5" width="600"> <tr> <td bgcolor="#CCCCCC" width="100"><font color="brown">'''Variable '''</font></td> <td bgcolor="#CCCCCC"><font color="brown">'''Values'''</font></td> <td bgcolor="#CCCCCC"><font color="brown">'''Description'''</font></td> </tr> <tr> <td>'''PluginEnabled'''</td> <td>false (String)</td> <td>Forced ADF Form Deactivation</td> </tr> <tr> <td>'''DisplayUWLogo'''</td> <td>false (String)</td> <td>Forced UWM Information Deactivation</td> </tr> <tr> <td>'''UWMmark'''</td> <td>false (String)</td> <td>Forced UWM Information Deactivation</td> </tr> </table> ''Warnings:'' Host Frame Rate will affect the player's animation performance. <br>We suggested to have a frame rate of 25 or higher.<br>Security Sandbox Violations will occur during your integration cycle as cross domain situations come into play.
2008
UnityWorks!
Media