Page 1 of 2

On video complete

PostPosted: Sun Jul 05, 2015 4:49 pm
by Fabio Musio
How can I set an action when the video is complete?
So far I can set the video loop, nothing else.

Re: On video complete

PostPosted: Sun Jul 05, 2015 7:11 pm
by mediavets
Fabio Musio wrote:How can I set an action when the video is complete?
So far I can set the video loop, nothing else.


In what context is the video playing?

Are we talking about a video as a scene, or a video hotspot, or a video invoked by a hotspot?

Re: On video complete

PostPosted: Sun Jul 05, 2015 7:39 pm
by Fabio Musio
Video as a scene

Re: On video complete

PostPosted: Sun Jul 05, 2015 9:13 pm
by mediavets
Fabio Musio wrote:Video as a scene

What action would you like to happen after video plays through once?

Re: On video complete

PostPosted: Mon Jul 06, 2015 1:54 am
by Fabio Musio
For example I'd like to go to another pano

Re: On video complete

PostPosted: Mon Jul 06, 2015 3:18 pm
by bdd
Fabio Musio wrote:How can I set an action when the video is complete?
So far I can set the video loop, nothing else.


You cannot do it inside PTP with current version.
You can do it by modifying a little the generated code.

In the yourtour_core.xml file, just find the onxmlcomplete attribute of the videoplayer plugin.
There add the code you want to do.

I'll see if the "Actions" plugin (http://www.kolor.com/wiki-en/action/vie ... our_Events) can be enhanced with this event.
But if its the case, then the action will not be called in VR mode, as this plugin is not exported in VR mode.

Gérald

Re: On video complete

PostPosted: Mon Jul 06, 2015 4:19 pm
by Fabio Musio
That would be a nice feature to be added. ;)

Re: On video complete

PostPosted: Mon Jul 06, 2015 4:25 pm
by Fabio Musio
Also, your solution works if I have just 1 video.
What if I have multiple videos with multiple destinations?

Re: On video complete

PostPosted: Mon Jul 06, 2015 4:50 pm
by mediavets
bdd wrote:I'll see if the "Actions" plugin (http://www.kolor.com/wiki-en/action/vie ... our_Events) can be enhanced with this event.
But if its the case, then the action will not be called in VR mode, as this plugin is not exported in VR mode.

Gérald

Is there a reason why it isn't?

Re: On video complete

PostPosted: Mon Jul 06, 2015 4:51 pm
by mediavets
Fabio Musio wrote:Also, your solution works if I have just 1 video.
What if I have multiple videos with multiple destinations?

Then you'd need a scene-specfic multi-instance plugin; unless, perhaps, if the destination scene was always the next in the tour order?

Re: On video complete

PostPosted: Tue Jul 07, 2015 9:37 am
by Terry44
Something like that could be great Gerald ;). http://360idees.com/360PANO/foirexpo/

Re: On video complete

PostPosted: Tue Jul 07, 2015 9:39 am
by Terry44
made it with KRPANO ...tour player under vide player ... i know ... it's a bad player ... but code for video scene to video scene works...

Re: On video complete

PostPosted: Thu Jul 09, 2015 8:46 am
by bdd
I did a quick modification in the Advanced plugin "Call actions on tour events" to add this event.

ActionsOnEvents.zip
(2.53 KiB) Downloaded 117 times


I share this modification here on the forum and not on our dedicated page, as the way this onvideocomplete works may change in next beta or in the final 2.5 release.

When the 2.5 version will be out, we will add an official modified version of it.

With this plugin you can set the videoscene ID on which you want it to act. And as you can use this plugin multiple times, you can have many videos in your tour that automatically load next scene on video complete event.

Gérald

Re: On video complete

PostPosted: Sat Sep 19, 2015 1:07 pm
by tarrinos
Bonjour,

Merci pour ce plugin qui marche très bien chez moi en mode normal mais ne fonctionne pas en mode VR, j’ai regardé un peu mes XML, mais je ne trouve pas où ce plugin agit ….
Avez-vous une idée de ce que je dois modifier pour le faire fonctionner en VR ?

Dan

Hello,

Thank you for this plugin that works very well for me in normal mode but does not work in VR mode , I looked a little my XML, but I can not find where this plugin is ... .
Do you have any idea what I need to change to make it work in VR ?

Dan

Re: On video complete

PostPosted: Sat Sep 19, 2015 1:18 pm
by Cliquetsy
Every plugin is removed in vr mode, it doesnt work.

For the moment you can try have a hotspot in your videos (at the nadir or zenith) to be able to navigate away from the video in VR mode.

Re: On video complete

PostPosted: Sat Sep 19, 2015 2:07 pm
by tarrinos
Cliquesty thank you

Where is the code generated by the plugin ?

Dan ,

Merci Cliquesty

Où se trouve le code généré par le plugin ?

Dan,

Re: On video complete

PostPosted: Sat Sep 19, 2015 2:56 pm
by Cliquetsy
Pribably in the tour_skin.XML

Re: On video complete

PostPosted: Sun Sep 20, 2015 5:22 pm
by tarrinos
yes in tour_skin.xml, it's ok now on vr.

Thanks

Re: On video complete

PostPosted: Fri Sep 25, 2015 5:22 pm
by flyeye
bdd wrote:I did a quick modification in the Advanced plugin "Call actions on tour events" to add this event.

ActionsOnEvents.zip


I share this modification here on the forum and not on our dedicated page, as the way this onvideocomplete works may change in next beta or in the final 2.5 release.

When the 2.5 version will be out, we will add an official modified version of it.

With this plugin you can set the videoscene ID on which you want it to act. And as you can use this plugin multiple times, you can have many videos in your tour that automatically load next scene on video complete event.

Gérald


Hello,
when I use this plugin (also with the ID) it's only working at this last video I have placed. All the others (placed before) do not link to another panorama when they are finished and stay at the last frame of the video. Am I forgetting something? Thanks for your support!

Re: On video complete

PostPosted: Fri Sep 25, 2015 7:20 pm
by mediavets
Have you added multiple instances of the plugin, one for each video scene?

Re: On video complete

PostPosted: Fri Sep 25, 2015 7:35 pm
by flyeye
Yes I did. Each video has his own "Call actions on tour events".
2015-09-25_203236.jpg
2015-09-25_203236.jpg (40.39 KiB) Viewed 4933 times

Re: On video complete

PostPosted: Fri Sep 25, 2015 8:17 pm
by Cliquetsy
Could you possibly share on online version of the tour?


Also, how about using the basic > load next panorama instead, the next panorama being the next one in pano order.

Re: On video complete

PostPosted: Sat Sep 26, 2015 8:29 am
by flyeye
Hi, thanks for your responses.
I am currently testing the option using “trash” material. So putting the tour online is not a good idea (haha). The action to go direct to the next panorama has unfortunately the same result.
I have now tested the software on a Windows and Apple system. Both give the same result. So I am doing something wrong or forget something, but I do not know what it is. I will keep trying.

Re: On video complete

PostPosted: Sat Sep 26, 2015 11:00 am
by mediavets
Cliquetsy wrote:Could you possibly share on online version of the tour?


Also, how about using the basic > load next panorama instead, the next panorama being the next one in pano order.

Using PTP 2.5 beta 3 64-bit on Windows 10 Pro 64-bit viewing with latest Firefox...

I created a simple three video scene tour and tried your suggestion...it didn't work instead the video simply stopped and the browser (local viewing using latest Firesox) closed that tab shortly after the initial video scene completed.

Re: On video complete

PostPosted: Sat Sep 26, 2015 12:05 pm
by Cliquetsy
That's weird it's always worked for me.

Did you make it pano specific to each video or general?

If its load next scene you don't need it to be scene specific