Page 1 of 1

How to stop auto rotation on exit from iframe

Posted: Thu Nov 07, 2019 6:04 pm
by vasja64
Hello!
I am working with a lot of panoramas which are not in same project.
They all are running on a touch screen kiosk locally.
I put them in iframe as a text box.
Problem is that i can not figure out how to stop autorotation when user closes an iframe.
I this case all panoramas are running in background and are using processor an memory.
Can someone help me?

Re: How to stop auto rotation on exit from iframe

Posted: Thu Nov 07, 2019 6:18 pm
by Hopki
Hi,
If you are using an iframe then why not dynamically load the tours.
As an example have one text box to display the panoramas, this will have no text.
You then have buttons that have a "Set Value" action, this sets the iframe to the text box and the panorama shows.
You may also want to have the text box hidden so the button will also need a show text box action.
The close button would have a "Set Value" action which will be blank, this will "unload" the panorama.
Again you may want to hide the text box as well. But if the text box has no background or border I suspect there would be no need to hide and show it.
This way you only have one panorama displaying at a time.
Regards,
Hopki

Re: How to stop auto rotation on exit from iframe

Posted: Thu Nov 07, 2019 6:30 pm
by vasja64
Thank you Hopki for fast response!
I have to read your answer few times and try to understand what you want so say…:)

Re: How to stop auto rotation on exit from iframe

Posted: Thu Nov 07, 2019 8:34 pm
by Hopki
Hi,
From what I understand you have several tours (outputs).
I am working with a lot of panoramas which are not in same project.
You have a master project and you open each panorama using an iframe in a text box.
I put them in iframe as a text box.
As I understand it the problem is you have a text box for each panorama and they are all rotating taking up computer resources even though that may be hidden.
Problem is that i can not figure out how to stop autorotation when user closes an iframe.
So my suggestion is to use one text box.
I am assuming that you have buttons to open each panorama/tour.
Again I am assuming you have built the interface with Pano2VR's skin editor.

Please see the attached project.
Regards,
Hopki

Re: How to stop auto rotation on exit from iframe

Posted: Thu Nov 07, 2019 10:06 pm
by vasja64
Thanks! I forgot to tell you, i am using Pano2vr 5.2.5.

Tomorow i Will make an example of what i am doing and Will send you…

Regards!

Re: How to stop auto rotation on exit from iframe

Posted: Fri Nov 08, 2019 10:15 am
by vasja64
Hello Hopki!
Here is my simple example:
http://www.kocevska.com/hopki/autostop.zip

Would you be so kind to add your "magic" to solve my problem?

Thanks in advance!