Seems that the onvideoplay event is never called when using playvideo action into 1.19pre-release.
onvideoplay event is not called on playvideo action
-
-
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
-
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
-
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();"/> -
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:
https://krpano.com/viewsource.htm…eointerface.xmlBest regards,
Klaus -
Thanks Klaus. That makes total sense.
-
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.
-
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 -
I upgraded to 1.19-pr5 and things started working
Thanks Again
-
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
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!