Juicebox in package viewer android

Q&A about the latest versions
Post Reply
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
I just changed some slide shows to juicebox script, a quick and good way to show flat pictures..! However on android package viewer i get the message it cannot display it locally. I guess it's some safety issue for displaying local files.. is there some workaround?
david
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi david,
I have no experience with juicebox, try using Pano2VR to make the gallery, does it work?
See: viewtopic.php?f=13&t=15589
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,

Juicebox was recommended in some older threat, and i must say it works great. especially when you have a lot of images, it makes it almost automatic, can't go wrong. works good on mobile too. It's all HTML 5. i 'call' its index page through an i-frame, just like your example. it works fine locally when previewing with the internal server, but with package viewer i get the error, both on windows and android.
It seems to have something to do with a browser (if server not running) /the viewer not wanting to load external files? (the juicebox script is a separate .js file).
David

// edit: indeed it seems to be the loading of "external" files (even when it's from a sub folder...). could the package viewer ignore this 'safety' feature?
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
The juicebox script gets the JS from output\galleries\01\jbcore\juicebox.js .
Is that something the android (or windows) viewer can't handle?
It's working fine when viewing locally from pano2vr with the server running.

I'm using one skin across many projects, for this reason the pano2vr standard component isn't very suitable. (it's also quite cumbersome to add or edit it all in the skin editor)


David
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi David,
Have you gone back to Juicebox and asked the question?
It may be they have a solution to the issue.
Did you try a project with a gallery made with Pano2VR, did it work for you?
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
Thanks for checking. The juicebox script is quite old, their support forum still seems to work but i don't think any updates will be done.

for local (offline) testing it's a known "bug", or security feature with browsers, who don't allow local script files to be executed.
there is a workaround for testing in firefox to disable the security, and then it works fine, by changing "privacy.file_unique_origin".
( found here: https://juicebox.net/forum/viewtopic.php?id=4816 )
actually i now notice even the normal pano2vr projects also run fine in firefox without package viewer or starting the virtual server.. just click the index.html

anyway I was hoping the package viewer to start some kind of server to show the projects, and so 'automatically' also enable juicebox to work, as it's almost the same principle of running a script and calling some pictures.

hope my explanation s not too confusing :)

i'm not sure if the 'standard" pano2vr gallery worked with the viewer, after some experiments i removed it from my skins..

david
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi David,
Using Pano2VR works, testing in the Desktop Package Viewer and Mobile Package Viewer.
I have attached a project, open the gallery folder and make the gallery project first, then build the pano_01.p2vr project.
Using this test file and seeing it works you can then swap out the gallery project with others to test to see if they will work.
Or just use Pano2VR, here is the forum post about it: viewtopic.php?f=13&t=15589
Regards,
Attachments
project.zip
(318.58 KiB) Downloaded 166 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
It's a bit old topic, still i like to use the Juicebox script in a I-frame. It's quick to make and looks neat. that is, online. Through the android package viewer app i get the message "can not display locally in browser". I know, this is not caused by P2VR, but maybe it's still possible to show the slides.

I found what's going wrong:

"In order to not get the "Juicebox can not display locally in this browser." message, the gallery's web page must be viewed over http:// or https:// (or viewed in Firefox or Safari). If the file:/// protocol is used (as it would be for local use), the gallery will fail to display in any browser other than Firefox and Safari."

Would it be possible to have the android package viewer app's server (that i figure is used to show the panorama project itself) also handle the slides (i-frame with index page and an xml file) from Juicebox?

Best,
David
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Actually, never mind.. i'll change any "slideshow" type iframe to another P2VR project with flat images.
It works well, but for this to look really elegant the transition (out) for flat images needs to be fixed, now each image has the chosen transition "in", but "out" is always a hard cut.

Hope for the next update :)

best,
David
Post Reply