Sie sind nicht angemeldet.

1

Dienstag, 14. Juli 2020, 16:56

How to loop at the end of a 360 video?

Hi krpano-Forum,

I'm very new to krpano, but I've managed to create a 360 Video Scene with the video plugin. After the video ends I want to loop the last few seconds of the video. Is this possible? I have not found any plugin attributes to do so, and before I spent my time to get into event capturing I want to ask if this is possible by capture the video end event and restart it with the playvideo function? Or maybe there a completely different solution?

Thanks in advance!
greets
Queboth

3

Dienstag, 14. Juli 2020, 18:02

Hi toosten,

thank you for the quick answer and I'm really happy that it is possible, but I'm not exactly sure how to put this all together. I think I understand your approach with the seek and play functions, but i don't know how and where to use the iscomplete attribute. So far I have something like this:

<plugin name="video"
url.html5="videoplayer.js"
url.flash="videoplayer.swf"
videourl="video.m4v|video.webm"
posterurl="videoposter.jpg"
panovideo="true"
pausedonstart="false"
loop="false"
volume="1.0"
/>

<image hfov="360" vfov="180">
<sphere url="plugin:video" />
</image>


Please can you give me one more hint on how to use iscomplete?

Thank you very much :)

greets
Queboth

4

Dienstag, 14. Juli 2020, 18:19

it is called onvideocomplete
-->
https://krpano.com/plugins/videoplayer/#onvideocomplete

<plugin name="video" ... onvideocomplete="trace('hello');seek(123);play();" ... />

(untested)

5

Dienstag, 14. Juli 2020, 18:47

Hi toosten,

thank you, works like a charm :)

greets
Queboth