You are not logged in.

1

Wednesday, October 15th 2014, 4:16pm

Replay videohotspot when finisched playing

Hello fellow krpano users,

Inside a 360 environment i've created a videohotspot. This videohotspot will be played and paused when clicked on it. But once the video is clicked and is playing - i would like that this video will replay it self. I have found something like 'onvideocomplete' but i'm stuck at that point. Does anyone know if this is possible and has a solution?

martyhr

Intermediate

Posts: 387

Location: CZ

  • Send private message

2

Wednesday, October 15th 2014, 9:17pm


3

Thursday, October 16th 2014, 11:18am

The problem is not the loop. Loop works on the video.
I would like that the video stops at the ends of the video. And when i click again on the videohotspot the video must play again at the beginning.

This is what i've got so far:

<hotspot name="videospot" ath="1.444934" atv="0.278802" width="535" height="310" url="plugins/videoplayer.swf"
keep="false" zoom="false" distorted="true" width="420" height="340" scale="1" scale9grid="" scalechildren="false" rotate="0" rx="0" ry="0" rz="0" edge="center" ox="" oy="" crop="" ondowncrop="" onovercrop="" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" refreshrate="auto" onloaded="" onover="" onhover="if(ispaused, showtext(Klik om af te spelen), showtext(Klik om te pauzeren));" onout="" ondown="" onup="" onclick="togglepause());" buffertime="0.1" directionalsound="true" flying="0" pausedonstart="true" range="210" updateeveryframe="true" videourl="video-content/BG/2_Whatiismoney.mp4" volume="0.7" onvideocomplete="resume();" loop="true" />

thanks so far! :)

4

Saturday, October 18th 2014, 5:23pm

Hi,

try:

Source code

1
onvideocomplete="seek(0);"


or if the video shouldn't seek automatically to the first frame when finished:

Source code

1
onclick="if(iscomplete, seek(0)); togglepause();"


See also:
http://krpano.com/plugins/videoplayer/#stateattributes
http://krpano.com/plugins/videoplayer/#seek

Best regards,
Klaus

Similar threads