当用户访问平板电脑/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 });
原样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;
因此,在 iPad 上运行时,我尝试设置html5: "auto"
、html5: "only"
和,但没有成功。html5: "prefer"
那么有人知道该怎么做吗?会有很大的帮助...