You are not logged in.

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

benji33

Intermediate

  • "benji33" started this thread

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

1

Friday, April 10th 2015, 3:30pm

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

Trainee

Posts: 69

Location: Paris, France

Occupation: Game Developer and Photographer

  • Send private message

2

Monday, May 16th 2016, 8:15pm

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

Sage

Posts: 3,154

Location: Netherlands

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

  • Send private message

3

Monday, May 16th 2016, 10:26pm

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*
http://www.virtualtuur.com
Skype:studiotuur

Posts: 7

Location: Los Angeles

Occupation: Developer @ wildlife.la

  • Send private message

4

Friday, May 20th 2016, 12:15am

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

Wednesday, May 25th 2016, 10:49am

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

Posts: 7

Location: Los Angeles

Occupation: Developer @ wildlife.la

  • Send private message

6

Friday, May 27th 2016, 3:47am

Thanks Klaus. That makes total sense.

7

Tuesday, May 31st 2016, 12:40pm

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

Wednesday, June 1st 2016, 7:22pm

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

Wednesday, June 29th 2016, 5:28pm

I upgraded to 1.19-pr5 and things started working

Thanks Again

10

Thursday, August 15th 2019, 3:24pm

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