当用户访问平板电脑/iPad上的特定页面时,我正在尝试使用KRPano html5全景查看器。在台式机上,我使用flash查看器,它可以正常工作:
embedpano({ swf: "/Files/Flash/krpano.swf", xml: "/Files/Flash/view.xml", target: "panview", id: "krpanoSWFObject", width: 1920, height: 1100, vars: settings });其中as settings是:
var settings = {};
settings["sphere"] = ImgSrc; // ImgSrc is a variable which contains the source of the image
settings["view.hlookat"] = 0.0;
settings["view.vlookat"] = 0.0;
settings["view.fov"] = 90;
settings["view.fovmin"] = 0;
settings["view.fovmax"] = 150;因此,我尝试设置html5: "auto"、html5: "only"和html5: "prefer",但在iPad上运行时没有成功。
有谁知道该怎么做吗?会是一个很大的帮助。
发布于 2016-08-10 15:42:24
我希望你已经解决了这个问题。
然而,我向其他用户提到了我的答案。您应该在加载krpano.swf的同时加载krpano.js。
只需放在embedpano()脚本之前。
关于Krpano,我建议使用http://krpano.com/forum获得更具体的答案。Klaus,krpano开发人员,正在回答一些问题。
https://stackoverflow.com/questions/37681436
复制相似问题