We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14404
    • 84 Posts
    Hello guys,

    I’m having a little problem. For the product pages i use a video inside each page.
    Im using SWFobject 2.2 for this. This is the code inside the template:

    						<div id="videoPlayer">
    							<script type="text/javascript" src="assets/templates/www/swfobject/swfobject.js"></script>
    							<script type="text/javascript" src="assets/templates/www/swfobject/swfmacmousewheel.js"></script>
    							<script type="text/javascript">
    								var flashvars = {
    								  htmlPage: document.location,
    								  currVideo: swfobject.getQueryParamValue("currVideo"),
    								  settingsFile: "assets/templates/www/settings.xml"
    								};
    								var params = {
    								  allowFullScreen: "true",
    								  allowScriptAccess: "always"
    								};
    								var attributes = {
    								  id:"videoPlayer",
    								  name:"videoPlayer"
    								};
    								swfobject.embedSWF("assets/templates/www/videoPlayer.swf", "videoPlayer", "560", "400", "9.0.115", "assets/templates/www/swfobject/expressInstall.swf", flashvars, params, attributes);
    								swfmacmousewheel.registerObject(attributes.id);
    							</script>
    						</div><!-- End videoPlayer -->


    Settings.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <settings>
    	<options>
    		<playerSize autoResize="true" width="560" height="400"/>
    		
    		<buttons space="10" display="|previous,playPause,stop,next|progress|time|volume|expandCollapse,fullScreen|share|" sound="false" showMiddlePlayBtn="true"/>
    		
    		<controlsBar hide="true" hideDelay="3"/>
    		
    		<videos buffer="5" keepAspectRatio="true" autoLoad="true" autoPlay="false" playContinuously="true" loop="true" random="false"/>
    		
    		<volume default="80" format="horizontal"/>
    		
    		<watermark visible="false" position="TL"/>
    		
    		<tooltip visible="true" hideDelay="2"/>
    		
    		<listeners spaceKey="false" click="true" doubleClick="true"/>
    		
    		<cursor hide="true" hideDelay="2"/>
    
    		<playlist position="B" size="70" hide="true" hideType="slice" hideDelay="2" thumbWidth="70" thumbHeight="50" thumbPadding="10"/>
    		
    		<description visible="false" size="70"/>
    	</options>
    	
    	<colors>
    		<playerBackground value="0x000000"/>
    		<preloader background="0x000000" bckAlpha="70" text="0xCCCCCC" circle="0x559BB5"/>
    		<middlePlayBtn arrowNormal="0xFFFFFF" bckNormal="0x000000" alphaNormal="60" arrowOver="0xFFFFFF" bckOver="0x000000" alphaOver="80" arrowDown="0xFFFFFF" bckDown="0x000000" alphaDown="100"/>
    		<controllerBackground value="0x000000"/>
    		<controllerButtons normal="0xCCCCCC" over="0xFFFFFF" down="0xFFFFFF"/>
    		<volume border="0x666666" background="0x000000" speaker="0xCCCCCC" bar="0x559BB5"/>
    		<volumeScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" />
    		<progressBar border="0x666666" background="0x000000" elapse="0x559BB5" download="0x999999"/>
    		<progressScrubBtn brdNormal="0xCCCCCC" bckNormal="0x000000" brdOver="0xFFFFFF" bckOver="0x000000" brdDown="0xFFFFFF" bckDown="0x000000" />
    		<times value="0xCCCCCC"/>
    		<share background="0x000000" bckAlpha="40" boxBck="0x000000" boxBckAlpha="70" labels="0xFFFFFF" errorText="0x00FF00" text="0x000000" textBck="0xFFFFFF" textBrd="0x000000" btnsNormal="0xCCCCCC" btnsOver="0xFFFFFF" btnsDown="0xFFFFFF"/>
    		<playlist background="0x151515" bckAlpha="60" thumbBck="0x000000" thumbNormalAlpha="50" thumbOverAlpha="80" thumbSelectedAlpha="100"/>
    		<description background="0x151515" line="0x202020" title="0xFFFFFF" description="0xCCCCCC"/>
    		<scrollBar trackBar="0xCCCCCC" scrubBrdNormal="0xCCCCCC" scrubBckNormal="0x000000" scrubBrdOver="0xFFFFFF" scrubBckOver="0x000000" scrubBrdDown="0xFFFFFF" scrubBckDown="0x000000"/>
    		<caption  size="14" color="0xFFFFFF" glowColor="0x000000"/>
    		<tooltip bckColor="0xFFFFFF" txtColor="0x000000" alpha="60"/>
    	</colors>
    	
    	<videos>
    		
    	<video>
    			<videoPath value="assets/templates/www/videos/ratatouille.mov"/>
    			<previewImage value="assets/templates/www/videos/ratatouillePreview.jpg"/>
    			<thumbImage value="assets/templates/www/videos/ratatouilleThumb.jpg"/>
    			<title>
    				<![CDATA[Ratatouille]]>
    			</title>
    		</video>
    
    	</videos>
    	
    	<staf scriptPath="assets/templates/www/staf.php">
    		<subject>
    			<![CDATA[Message from your friend]]>
    		</subject>
    		<message>
    			<![CDATA[Hi,<br/>Your friend thought you might be interested in this video:<br/><a href="[videoPage]" target="_blank"><img border="0" src="[imgPath]" alt="Go to Video!" /></a>]]>
    		</message>
    	</staf>
    </settings>


    So now the problem is: i need to have a TV for some parts of the xml file, like:
    <videoPath value="assets/templates/www/videos/ratatouille.mov"/> should be like: <videoPath value="[*video*]"/>

    But the XML file doesn’t allow TV’s i guess.. What can i do about this problem?