You are not logged in.

Dear visitor, welcome to 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.


Sunday, April 29th 2018, 2:40am

Try to listen to events in javascript for a flat video in krpano

Hi everyone,
This is may first post, so, congratulations for this wonderful tool *thumbsup* !!!

As I said in the title, i try to listen to the events of time & url changing when a video is played.
when a time is reached i wanna trigger a js function whatever it is

I got this script that i put directly in my index.html file :

Source code

function jstest()
		var krpano = document.getElementById("krpanoSWFObject");
		var time = krpano.get("plugin[video].time"); // or .totaltime or .videoDOM
		setTimeout(function(){ alert(time); }, 3000);

but it only alerts me "null"...

Can someone tell me where i made a mistake ?

kind regards, vYk

This post has been edited 1 times, last edit by "vyk" (Apr 29th 2018, 11:47am)