You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, July 30th 2014, 3:32pm

Onstart action only for Flash/WebGL?

I have a delayedcall instruction in onstart, but I'd like to fire it off ONLY if the browser is capable of little planets. In other words, "Flash|WebGL".

Can I use any kind of conditional test to modify the following? Is there another way to do this?

Source code

1
delayedcall(5, if(doturnview == yes, action(littleplanet);



k

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

2

Wednesday, July 30th 2014, 7:08pm

Hi!
you can use device variable condition
http://krpano.com/docu/actions/#device.flash

Or use devices attribute in tag
for exmple

events name="my_onstart" devices="flash|webgl"
inxmlcomplete="someactions..."

Hope it help

Regards
Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN