[APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used  

This forum is fully dedicated to Autopano Tour. Bug report as well as feature discussion.
User avatar
gkaefer
Member
 
Posts: 3387
Joined: Tue Jun 09, 2009 1:01 pm
Location: Salzburg

[APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

by gkaefer » Sun Jun 06, 2010 2:48 am

APT 1.1 beta 7 using (with KRPANO unlimited domain license / krpano license).

If I use not the default Interface templates, but my own created templates e.g. gk1-navigation-fullscreen-rotation.xml
AND one custom HTML template
than the swfobject folder is not created by APT and opening final html results in error "Flash player 9 needed"

if I use default templates (html and for interface template) all works fine (swfobject folder will be created by APT...)

Liebe gruesse,
Georg

no avatar
jpdeglet69
Member
 
Posts: 73
Joined: Thu May 20, 2010 7:29 am
Location: Geneva and Lyon

by jpdeglet69 » Mon Jun 07, 2010 8:11 am

Hello,

Yes, same problem with customized java template under Mac OS.

JPhD
Best Regards,
JPhD
Website

no avatar
b4de4nd
Member
 
Posts: 19
Joined: Mon Jun 14, 2010 6:57 am

by b4de4nd » Mon Jun 14, 2010 7:25 am

this happens to me regardless of what template i use...

but i dont have an krpano license.. maybe thats an issue as well... but thats to be solved today : )

no avatar
Adrien F
Member
 
Posts: 264
Joined: Fri Jul 03, 2009 9:18 am

by Adrien F » Wed Jun 16, 2010 10:07 am

You have to be sure to create a folder with the same name as your html template in the same directory. If this template includes javascript calls to krpano, make sure to include the swfobject/ folder into the folder you created.

Example:
I made my html template called "myTemplate.html", calling the visit with javascript via "./swfobject/swfkrpano.js", and referencing some "default.css" stylesheet file :

Code: Select all
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Virtual Tour generated by Autopano Tour</title>
        <link rel="stylesheet" type="text/css" href= "default.css">
    </head>
    <body>
        <h1>$(TITLE)</h1>
        <div id="tour">
            <noscript>ERROR: no Javascript</noscript>
        </div>
                   
        <script type="text/javascript" src="./swfobject/swfkrpano.js">
        </script>
                   
        <script type="text/javascript">
            var swf = createswf("$(SWF)", "aptSWFObject", "640", "480");
            //swf.addVariable("xml", "pano1.xml");                            //uncomment this line to load another xml first
            swf.embed("tour");
           
            if ( so.write("tour") )
            { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
        </script>
    </body>
</html>

In the end I should put into the html template folder:
myTemplate.html
myTemplate/default.css
myTemplate/swfobject/
myTemplate/swfobject/swfkrpano.js

APT will export the content of the myTemplate/ folder at the same place the visit is exported. Replacing the macro $(PROJECTNAME) by the name of the visit, and $(SWF) by the name of the swf file ( $(SWF) = $(PROJECTNAME).swf ).

If this does not solve your problems, repost here and I will check if this is a bug.

User avatar
gkaefer
Member
 
Posts: 3387
Joined: Tue Jun 09, 2009 1:01 pm
Location: Salzburg

by gkaefer » Wed Jun 16, 2010 10:31 am

Dear Adrien,

thanks for pointing out the way to go....
I'll check this with my templates today evening and if this is the solution I'll update the templates from wiki...
Georg

User avatar
gkaefer
Member
 
Posts: 3387
Joined: Tue Jun 09, 2009 1:01 pm
Location: Salzburg

by gkaefer » Wed Jun 16, 2010 10:15 pm

Dear Adrien,

I verified your solution. This works as you described it....

reviewing your Code example I notified you wrote

Code: Select all
<link rel="stylesheet" type="text/css" href= "default.css">

Code: Select all
<script type="text/javascript" src="./swfobject/swfkrpano.js">

but with "default installation of latest APT beta 1.1.0.beta 7 no *.css file can be found in none of the default template folders
C:\Program Files\Kolor\Autopano Tour\Templates\html\java ... \javaDomainLicence nore in ...\javaWithFullScreen

and under ./swfobject no swfkrpano.js can be found (in none of the default folders. Instead swfobject.js and swfkrpanomousewheel.js can be found.

Georg

no avatar
Adrien F
Member
 
Posts: 264
Joined: Fri Jul 03, 2009 9:18 am

by Adrien F » Mon Jun 21, 2010 8:33 am

Those files don't appear in the default menu template of APT beta 7 and earlier. Later version will generate standard web pages, include a default css and the latest krpano javascript script.

Still, I was in the hypothetical case of a user using his own "myTemplate" template. In this case nothing prevents him from adding a css and joining both krpano js script into one file (as it is the case in latest versions of krpano).

So my example remains valid, even if it does not correspond to default installation at beta 7 time.

User avatar
gkaefer
Member
 
Posts: 3387
Joined: Tue Jun 09, 2009 1:01 pm
Location: Salzburg

by gkaefer » Tue Jun 22, 2010 2:40 pm

ok - clear now.
Georg


Return to Archive

Who is online

Users browsing this forum: No registered users and 1 guest