You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Riknieri

Beginner

  • "Riknieri" started this thread

Posts: 34

Location: Lucca

Occupation: Graphic and Multimendia artist

  • Send private message

1

Tuesday, September 13th 2016, 10:16am

Add a HTML5 viewer functionality to a old only-flash krpano

Hi,
some years ago, i made several krpanos for a museum site only-flash version (because htm5 doesn' exist yet).
Today this museum ask me to enable mobile device visualization for these panos.

Can anyone suggest me if exist a convert tool or a method to add the html5 visualization to and old only-flash pano?

thank you in advance.
bye

2

Tuesday, September 13th 2016, 10:21am

Hi,

simply try using the html5 viewer and if necessary update the xml files for missing html5 support cases... (what case exactly is fully individual and can't be answered universally).

The xml and images itself are typically the same for HTML5 and Flash...

Best regards,
Klaus

Riknieri

Beginner

  • "Riknieri" started this thread

Posts: 34

Location: Lucca

Occupation: Graphic and Multimendia artist

  • Send private message

3

Wednesday, September 14th 2016, 2:31pm

thank klaus,i've generate the players (with correct license domain) and i've set in the html file param swf in embedpano function (line 24) the correct file

<script>
embedpano({swf:"tobino.swf", xml:"camera_tobino.xml", target:"pano", html5:"auto", passQueryParameters:true});
</script>

So flash version work fine but html5 version display a black page withot any message or text.
forcing html5 param in upper statement with html5:"always" i see also on pc browser (chrome for windows) the all black page like the mobile display
i've forgotten something?
thanks for your support klaus.

4

Thursday, September 15th 2016, 9:21am

Hi,

there you could hundreds of reasons why it wouldn't work! ;-)
It's not possible to tell what might be work without seeing something.

That means either post a link to your example or try finding the reasons yourself - e.g. by looking into the browsers console, looking into the krpano log, checking the documentations...

Best regards,
Klaus

Riknieri

Beginner

  • "Riknieri" started this thread

Posts: 34

Location: Lucca

Occupation: Graphic and Multimendia artist

  • Send private message

5

Thursday, September 15th 2016, 10:35am

Hi klaus,
i've now set "auto" html5 param so you can see in a browser the pano that wark fine and in a mobile device the black screen.

http://celsius.sviluppo.lunet.it/testpano/camera.html

http://celsius.sviluppo.lunet.it/testpano/camera_tobino.xml

the xml file used.

Can you have a look? ty very much!

bye

6

Thursday, September 15th 2016, 11:42am

Hi,

when opening the html5 viewer - e.g. by using html5=prefer:
http://celsius.sviluppo.lunet.it/testpan…ml?html5=prefer
press the 'O' key on the keyboard to open the krpano log.

There you see this warning:

Source code

1
WARNING plugin[soundinterface] skipped flash file: soundinterface.swf
That's because swf files are for the Flashplayer, the HTML5 viewer requires .js plugins - e.g. the soundinterface.js in this case.

The problem with the black-screen is the following - the soundinterface plugin is defined with 'preload=true' in your xml - and because the plugin can't be loaded and preload is set to true - everything stops there.

Here as test with preload=false - still the warning, but the pano loads:
http://celsius.sviluppo.lunet.it/testpan…].preload=false

As solution - add also the html5 soundinterface plugin (as file and in the xml) - e.g. by:

Source code

1
2
3
4
<plugin ...
       url.flash="soundinterface.swf"
       url.html5="soundinterface.js"
       ...


Best regards,
Klaus

Riknieri

Beginner

  • "Riknieri" started this thread

Posts: 34

Location: Lucca

Occupation: Graphic and Multimendia artist

  • Send private message

7

Thursday, September 15th 2016, 12:23pm

Wow it's wonderful!!!
thanks very much Klaus
i solved the issue.

best regards with estimate and gratitude.
bye