PDA

View Full Version : DetectVR and FPP problem. help pls


Aris
02-13-2008, 12:03 PM
Hello.

I've just bought a license for FPP and I'm trying to integrate the option for Flash viewer in my website, but with no success. :(

I have these files:
ex01.html - in the root folder of my website
pano.swf - root
ex01.xml - root
ex01.mov - in mov Folder (mov/ex01.mov)
detectvr.js - root
movDecoder.swf, glassMeter.swf and the rest of the .SWF files from the FPP package in the fpp_files Folder (fpp_files/movDecoder.swf)

The ex01.xml looks like this:

<?xml version = '1.0'?>
<panorama>
<parameters>

panoType = mov
panoName = mov/ex01

layer_10 = fpp_files/glassMeter.swf
layer_1 = fpp_files/fps.swf
layer_3 = fpp_files/limits.swf
layer_6 = fpp_files/cylConverter.swf
layer_7 = fpp_files/movDecoder.swf
layer_8 = fpp_files/menuFullscreen.swf

segments = 25
loaderText=

</parameters>
</panorama>



this is a part of the html code from ex01.html:

<SCRIPT type="text/javascript" src="detectvr.js"></SCRIPT>
<SCRIPT type="text/javascript">
viewerparameters("devalvr","menu","0","resize","0",);
writecode("mov/ex01.mov","mov/ex01.mov","pano.swf?xml_file=ex01.xml&","","","100%","85%");

</SCRIPT>



When I click on the radio button for Flash the pano loads with DevalVR not FPP.
What am I doing wrong?

Regards,
Aris

cheathamlane
02-13-2008, 02:33 PM
It sounds like the issue might be with your detection script (which I have never used). That said:

viewerparameters("devalvr","menu","0","resize","0",);

That line looks like it's telling the script to load using DevalVR.

?

Aris
02-13-2008, 05:34 PM
I've deleted that line.

Nothing changed.

:confused:

cheathamlane
02-13-2008, 07:08 PM
I don't think you should delete that line. :)

From the DevalVR help forum:
http://www.devalvr.com/forum/viewtopic.php?t=276

Comes this tidbit:
Syntax:
writecode(QT file, DevalVR file, Java file, Flash file, SPIV file, width, height);

Example:
writecode("QTfile.mov","DevalVRfile.mov","Javafile.jpg","Flashfile.swf","SPIVfile.jpg","100%","94%");

Which might mean that your code below has your Flash file in the Java file place:
writecode("mov/ex01.mov","mov/ex01.mov","pano.swf?xml_file=ex01.xml&","","","100%","85%");

?

Aris
02-13-2008, 07:27 PM
Yes. That was the problem. :D
Thanks for the help.

I like your website.

Regards,
Aris

cheathamlane
02-13-2008, 07:47 PM
Cool! Glad it was an easy fix!

Thanks for the kind words about my site, too...

Cheers,

panocanarias
02-14-2008, 12:11 AM
Hi Aris, Hi Patrick,
just stepping in here.. not directly related to the (already solved) problem,
but just want to clarify, that this line

viewerparameters("devalvr","menu","0","resize","0",);
does not tell the script to load devalVR.
It just passes additional parameters (menu=0, resize=0) *if* devalVr is used.
This way you can pass dif. add. parameters to any of the supported viewers.
Saludos,
Klaus