Sie sind nicht angemeldet.

benji33

Fortgeschrittener

  • »benji33« ist der Autor dieses Themas

Beiträge: 244

Wohnort: France

Beruf: Senior Software engineer

  • Nachricht senden

1

Freitag, 10. April 2015, 15:30

onvideoplay event is not called on playvideo action

Seems that the onvideoplay event is never called when using playvideo action into 1.19pre-release.

Anoril

Schüler

Beiträge: 69

Wohnort: Paris, France

Beruf: Game Developer and Photographer

  • Nachricht senden

2

Montag, 16. Mai 2016, 20:15

Hi!

Got the same issue on 19-Pre4.

I'll go search for the code if there is no redefinition of the call somewhere... :)

Regards
« Quidquid latine dictum sit, altum sonatur »
Pentax stuff.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Montag, 16. Mai 2016, 22:26

Hi,

seems to work good.

but, when i am right it is not an event as in <events ...
but as in

<plugin video
keep="true"
blabla
onvideoplay="showlog();"

Hope it helps

Tuur *thumbsup*

Beiträge: 7

Wohnort: Los Angeles

Beruf: Developer @ wildlife.la

  • Nachricht senden

4

Freitag, 20. Mai 2016, 00:15

Not working for me either. onvideoplay, onvideocomplete doesn't work



<plugin name="video"keep="true"
url.html5="%SWFPATH%/plugins/videoplayer.js"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
pausedonstart="true"
loop="false"
volume="1.0"
onloaded="add_video_sources();"
onvideoplay="showlog();"
onvideocomplete="showlog();"/>

5

Mittwoch, 25. Mai 2016, 10:49

Hi,

according to this line it looks like your codes is based on the included 'videopano' example:
onloaded="add_video_sources();"
but the skin of that example is setting (overwriting if already defined) these events for own usage!

See the 'skin_video_setup' action in the 'skin/videointerface.xml' file:
http://krpano.com/viewsource.html?exampl…eointerface.xml

Best regards,
Klaus

Beiträge: 7

Wohnort: Los Angeles

Beruf: Developer @ wildlife.la

  • Nachricht senden

6

Freitag, 27. Mai 2016, 03:47

Thanks Klaus. That makes total sense.

7

Dienstag, 31. Mai 2016, 12:40

onvideoplay is definetely not working in this videoplayer plugin version -- krpano 1.19-pr3

Did anyone had any luck in getting this worked. Klaus kindly help in this.

krpano.get("plugin[video]").onvideoplay=this.handleVideoPlay


handleVideoPlay : function() {
console.log("handleVideoPlay");
},


video related event are not getting fired even after video play and completed.

8

Mittwoch, 1. Juni 2016, 19:22

Hi,

first - this kind of code:
krpano.get("plugin[video]").onvideoplay=this.handleVideoPlay
could only work in HTML5!
In Flash it would fail (do nothing) because the returned objects from the get() call are not linked to the original Flash Actionscript3 code!

Second check the the usage of the 'onvideoplay' in the xml code, it might get overwritten and also WHEN you are setting the event.

Best regards,
Klaus

9

Mittwoch, 29. Juni 2016, 17:28

I upgraded to 1.19-pr5 and things started working

Thanks Again

10

Donnerstag, 15. August 2019, 15:24

Hi,
i changed some lines in videointerface.xml, in skin_video_setup action
simply replace set commands by txtadd, it will append the videointerface event listeners to your own listeners defined in videopano.xml