Automatic checking if there is a Flashplayer installed and if the installed version is okay.
Automatic checking for iPhone, iPad or iPod Touch devices and loading the
When using the krpano make pano droplets with the setting embedlicenses=true this will be done automatically.
It enables the usage of the Mouse wheel for zooming on Mac OSX systems.
It fixes the mouse wheel usage on the HTML page - don't scroll the page when zooming inside the pano.
It fixes the mouse behaviors when using the Flashplayer wmode = transparent / opaque settings
(in detail - it enables the mouse wheel usage and fixes the mouse release outside the pano window).
It enables the usage of the Flashplayer Fullscreen Mode automatically.
Easy and simple usage of the embedding code.
It provides additional helper functions (passing parameters).
The createPanoViewer function creates and preparses the pano object for embedding.
The embedding object will be returned for addtional settings. With calling the embed
function the viewer will be finally embedded.
The embedPanoViewer and embedpano functions (both the same) are directly
creating and embedding the viewer.
The createswf and createkrpanoSWFviewer functions are the same (just different names)
and they create the object for embedding the pano. They will automatically use the krpanoJS
Viewer when necessary (on the iPhone/iPad).
The createkrpanoJSviewer function on the other side uses always the krpanoJS viewer.
Name and path to the swf file (relative to the html file).
ID of the Flash object in the HTML DOM.
The default ID is "krpanoSWFObject".
Width of the Flash object, can be a absolute pixel value or a relative percent value.
Default = "100%".
Height of the Flash object, can be a absolute pixel value or a relative percent value.
Default = "100%".
Default Background color of the Flash object.
Default = "#000000" (=Black).
There are some special variable for embedding the viewer. These variables will not directly passed to the viewer - they have a special meaning for the embedding itself:
xml or pano
With the xml or pano variable (both the same) it's possible to specify the path / name
of the startup xml file.
When no xml or pano variable will set then the 'default loading' will happen, which tries to load
a xml file which has the same 'basename' as the swf file (e.g. krpano.swf ⇒ krpano.xml or pano.swf ⇒ pano.xml
or tour.swf ⇒ tour.xml and so on ...).
By default and when no license is embedded then the krpano Flash viewer tries to load a license file which
has the same 'basename' as the swf file (e.g. krpano.swf ⇒ krpano.license or pano.swf ⇒ pano.license
or tour.swf ⇒ tour.license and so on ...).
But with the license variable it's possible to set a custom path / name of the license file.
The krpano viewer detects on which device (Desktop, iPhone, iPad, Android, ...) it is running, even with changed User-Agent of the Browser.
This was done to load the right images regardless of the User-Agent - on Desktop the bigger Desktop images will be loaded, on iPhone/iPod 3 the smaller <mobile>
images and on iPhone/iPod 4 and iPad the middle-sized <tablet> images. Addtionally there is an automatic internal scaling on the iPhone/iPod devices.
So to allow testing the iPhone / iPad / Android images and scalings also on Desktop there is the simulatedevice setting.
Possible settings are:
"iphone" - simulate the iPhone/iPod (krpanoJS only, <mobile> images and downscaled layout)
"ipad" - simulate the iPad (krpanoJS only, <tablet> images)
"useragent" - simulate the device depending on the User-Agent (krpanoJS only, Desktop, iPhone or iPad)
"androidmobile" - simulate an Android Mobile device (Flash only)
"android" or "androidtablet" - simulate an Android Tablet device (Flash only)
Here all default values will be used: "krpano.swf" as name for the flash viewer file,
"krpano.xml" as default xml file, "krpanoSWFObject" as viewer id and 100% as size.
Only the target where the pano should be embedded must be set.