Page 1 of 1

Dynamic configuration change file - xml

Posted: Fri Apr 12, 2019 12:03 am
by ladyginpro
Is it possible to use, as an argument to configFileURL, not a link, but an xml file?

For example: I need to change the parameters of the config file on the fly, and I can get the standard config file and change it with js, and then I need to update the player to change the parameters I need.

Is it even possible?

Re: Dynamic configuration change file - xml

Posted: Fri Apr 12, 2019 6:36 am
by WebSupport
This would usually be done on the server such that either when the page is loading or upon some ajax request your server code can generate an xml file on the fly as needed. And then the viewer script simply points to the generated xml as usual.

PS: because we always require a URL of the xml file, it's unlikely that you would be able to modify the xml in javascript in a browser.

Re: Dynamic configuration change file - xml

Posted: Sat Oct 12, 2019 1:42 am
by Quincy
Does the server automatically generate the xml files in a case like this?

Re: Dynamic configuration change file - xml

Posted: Sat Oct 12, 2019 10:14 pm
by WebSupport
Our core viewer product doesn't include a sever component (although we recently launched a hosting platform for webrotate 360 product views - PixRiot).

Surprisingly, we also recently added a new API callback that gives you access to all xml config settings in JavaScript after xml is loaded by the viewer and before the settings are applied to any viewer UI, so you can now modify the config in browser according to some custom logic. Let us know if you need this update now as it will be probably a couple of weeks before it's released as a new 3.6.4 build.

Re: Dynamic configuration change file - xml

Posted: Tue Nov 19, 2019 1:57 am
by daouf
Hello;

Before buying your product, I can not tell the difference between the Pro version and the Enterprise version.
Secondly, I have a mobile application that allows taking pictures from different angles, the latter will be stored in a web database for processing by Webrotate. my question is this: Is api able to process images in an automatic way?
thank you for your usual collaboration

Re: Dynamic configuration change file - xml

Posted: Tue Nov 19, 2019 11:00 pm
by WebSupport
Hi, can you please give us more details about this requirement: "Is api able to process images in an automatic way?"

Re: Dynamic configuration change file - xml

Posted: Fri Nov 22, 2019 1:47 am
by daouf
Hi;

first of all, I want to thank you for your usual responsiveness.

I have a website where users send me images of their product from 32 different angles allowing me to create a 360 ° rendering.
the current procedure is that I process the photos manually on your software "Webrotate spot Editor", I publish to generate the xml file that I load it manually in my website.

this process is tedious and requires a lot of manual processing. that's why I'm wondering if there's a way to do it automatically using the APIs provided.

Re: Dynamic configuration change file - xml

Posted: Sun Nov 24, 2019 7:27 am
by WebSupport
We don't have server APIs but you can work with your server team to make sure the images are renamed to match your "template" viewer xml file and store uploaded images in a certain folder on your server so you can then use our JavaScript API to load the xml and the images they uploaded as needed. Does this make sense?