Any way of changing XML values for published HTML5 panos?

Q&A about the latest versions
Post Reply
User avatar
jobes
Posts: 87
Joined: Fri Mar 07, 2008 2:34 am
Contact:

Quick question: is there a way for an end user to change any variables within the XML for an HTML5 panorama?

I'd like to add a button to change

Code: Select all

invertcontrol="1"
to

Code: Select all

invertcontrol="0"
… thus allowing the user to change control mode, depending on whether they like StreetView drag, or QTVR style. This'd be useful for creating a default HTML5 pano, with a Flash fallback… so the user can switch depending on whether they're on a touch or non-touch device.

I understand you can do this with elements defined within the document HTML file (such as gyro on/off)… but is there any way of defining something so a variable in the XML for an HTML5 pano can be changed 'on the fly'… or is it fixed once the output is produced from P2VR?

It'd be even more cool to to do it automatically via checking the user agent for the browser, but I guess that'd require some more involved Javascript-fu… :)

Cheers
Post Reply