Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 11. Juni 2015, 22:30

how to get information on video player

hi~
i'm trying to make a project on video player.

i have questions.

1. how to get the video current time and total time? i don't want to use xml.
krpano.get("any variables for times")?

2. how to get the plugin class on JS ? i tried a lot of ways... but i couldn't any ways...
because i want to know event that video play,stop,buffer,play end, play start....

please let me know...

2

Montag, 15. Juni 2015, 11:40

Hi,

Zitat

1. how to get the video current time and total time? i don't want to use xml.

krpano.get("any variables for times")?
e.g. via:

Quellcode

1
2
krpano.get("plugin[NAME].time");
krpano.get("plugin[NAME].totaltime");
where NAME is the name of the plugin element inside the xml.



Zitat

2. how to get the plugin class on JS ? i tried a lot of ways... but i couldn't any ways...
because i want to know event that video play,stop,buffer,play end, play start....
The HTML5 videoplayer plugin exposes the internal <video> DOM element via:

Quellcode

1
krpano.get("plugin[NAME]").videoDOM
but when changing the video state directly via that object, the krpano states might not match. Also note - when playing a new video that object might change too.

To avoid cross-browsers problems, I would recommend using the krpano videoplayer APIs.

Best regards,
Klaus