Sie sind nicht angemeldet.

1

Freitag, 11. Dezember 2020, 15:30

Timeline - time managements

Hi,

I want to run commands with krpano at specific time intervals. Clicking on a hotspot or a button will start the time, I will call the command I want within the time interval I choose. Sometimes it will stop.
I need to manage time.

for example:
I'm going to click on a hotspot. The 2-minute video will open. The video will stop after 30 seconds. a button will appear. the user will click the button. the video will continue. When the video expires, two buttons (options) will appear on the screen. Clicking any of them will close the video. popup will open or another video will be called.

I use google translation. sorry for the mistakes.

thanks. regards.

2

Dienstag, 15. Dezember 2020, 11:23

Hi,

have a look at delayedcall and stopdelayedcall
https://krpano.com/docu/actions/#delayedcall
https://krpano.com/docu/actions/#stopdelayedcall

Additionally there is also the timertick variable which contains the current milliseconds since the viewer started, this could be used for custom time-interval calculations:
https://krpano.com/docu/actions/#timertick

Best regards,
Klaus