Hi all, is there a way to set the min fov, max fov, and/or any other params of view via javascript?
if yes, can that works on .swf produced with krprotect too?
thanks,
Dorin
Hi all, is there a way to set the min fov, max fov, and/or any other params of view via javascript?
if yes, can that works on .swf produced with krprotect too?
thanks,
Dorin
For the first question, I know the answer : yes it's possible. Have a look to the javascript example in the 1.0.7 package available in this site.
But I 've no idea for the second question !
Thanks, I tested the javascript setting and works, it works also on .swf produced by kprotect if
[] Disable Javascript Interface (get, set, call)
is unchecket of course, but that can't be unchecked unless the Domain Limited radio button is selected..
So here is another question ;)
To have available the java interface in that .swf the .swf must be domain limited?
Dorin
Hi,
QuoteHi all, is there a way to set the min fov, max fov, and/or any other params of view via javascript?
yes, here some Javascript example code:
krpano = document.getElementById("krpanoSWFObject");
krpano.set("view.fovmin", 10);
krpano.set("view.fovmax", 120);
var currentfov = krpano.get("view.fov");
krpano.set("view.fov", currentfov + 10);
To have available the java interface in that .swf the .swf must be domain limited?
yes, the javascript interface is only available in domain limited mode or with an external license,
because when the xml was embedded, it could be read-out and/or modified via javascript...
best regards,
Klaus
Thank you Klaus for the quick answer, shure I don't want that the embeded xml to be read-out but it will be very nice if some params, especially or, at least, only the view.xxx ones to be set at embeding level in html.
or maybe there is other way to pass some params at embedding level from html to the .swf params which to be read and used internally to set the initial view, fov min & max.
In fact I want to offer to the one who embbed the stitchless .swf pano into html the posibility to choose the fov min and max, the initial (open) view and the tilting up/down camera limit to avoid, if wants, the visible black areas if a crop camera was used or if wants the pano to look much more like a regular pano.
Dorin
Hi Dorin,
Here some references about passing params to Krpano using javascript:
Banner without XML
easy way to access to a pano ?
Hope this can help.
Salut.
Thanks Michel, I'll try but I guess, the same rule applies to http params as for the javascript interface, works only when the .swf is domain limited.
Dorin
Thanks Michel, I'll try but I guess, the same rule applies to http params as for the javascript interface, works only when the .swf is domain limited.
Hi, in the next kprotect release it will be also possible to enable the javascript interface also for "embedded xml" swfs,
best regards,
Klaus
Hi, in the next kprotect release it will be also possible to enable the javascript interface also for "embedded xml" swfs,
best regards,
Klaus
Hi Klaus, any info about when this next krprotect release is available, or is already out?
thanks,
Dorin
Hi Klaus, any info about when this next krprotect release is available, or is already out?
Hi,
soon, with a bit (much) luck next week...
best regards,
Klaus
Don’t have an account yet? Register yourself now and be a part of our community!