You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2010-10-10 23:13:05

urke
Member
Registered: 2007-11-06
Posts: 59

Video hotspot loop

I am making a virtual tour with several video hotspots, using flv objects. How can I make the video play only once (not loop)?

Offline

 

#2 2010-10-11 00:03:46

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9818
Website

Re: Video hotspot loop

urke wrote:

I am making a virtual tour with several video hotspots, using flv objects. How can I make the video play only once (not loop)?

You'll need to edit the XML files generated by Panotour Pro.

Here's a link to the krpano videoplayer documentation:

http://krpano.com/forum/wbb/index.php?p … readID=812

It states that the loop parameter defaults to "false" but that appears to be incorrect, video invoked from within VTs created with Panotour behaves as if the loop paramater defaults to "true".

So you 'll need to add a loop="false" parameter in the XML where the videoplayer is called.

Here's one I made earlier, as they say on TV cookery shows:

Code:

<krpano version="1.0.8">
    <!--************** Panorama *******************************************************************-->
    <!--@File="video- hs-test-010.xml" @PanoName="[10]-DSCN4180_DSCN41830000" @FilePath="C:/Documents and Settings/Administrator/My Documents/[10]-DSCN4180_DSCN41830000.jpg"-->
    <panoview h="0" v="0" fov="90"/>
    <!-- view parameters -->
    <view fisheye="0" limitview="lookat" vlookatmin="-90" vlookatmax="90" maxpixelzoom="1.0" fovmax="90" fov="90" hlookat="0" vlookat="0"/>
    <!-- preview image -->
    <preview url="video- hs-test-01data/video- hs-test-010/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>
    <!-- the pano itself -->
    <image type="CUBE" multires="true" tilesize="828" baseindex="0">
        <level tiledimagewidth="1656" tiledimageheight="1656">
            <left url="video- hs-test-01data/video- hs-test-010/3/1/%v_%u.jpg"/>
            <front url="video- hs-test-01data/video- hs-test-010/0/1/%v_%u.jpg"/>
            <right url="video- hs-test-01data/video- hs-test-010/1/1/%v_%u.jpg"/>
            <back url="video- hs-test-01data/video- hs-test-010/2/1/%v_%u.jpg"/>
            <up url="video- hs-test-01data/video- hs-test-010/4/1/%v_%u.jpg"/>
            <down url="video- hs-test-01data/video- hs-test-010/5/1/%v_%u.jpg"/>
        </level>
        <level tiledimagewidth="828" tiledimageheight="828">
            <left url="video- hs-test-01data/video- hs-test-010/3/0/%v_%u.jpg"/>
            <front url="video- hs-test-01data/video- hs-test-010/0/0/%v_%u.jpg"/>
            <right url="video- hs-test-01data/video- hs-test-010/1/0/%v_%u.jpg"/>
            <back url="video- hs-test-01data/video- hs-test-010/2/0/%v_%u.jpg"/>
            <up url="video- hs-test-01data/video- hs-test-010/4/0/%v_%u.jpg"/>
            <down url="video- hs-test-01data/video- hs-test-010/5/0/%v_%u.jpg"/>
        </level>
    </image>
    <!--************** Hotspots and lensflares ***************************************************-->
    <hotspot name="spot0" onclick="action(closeglobalobjects);action(closeallobjects);set(plugin[spot0object].visible,true);tween(plugin[spot0object].alpha, 1);plugin[spot0object].play()" url="video- hs-test-01data/graphics/spots/spot0.png" ath="322.123" atv="1.34328"/>
    <plugin name="spot0object" visible="false" url="video- hs-test-01data/graphics/videoplayer.swf" videourl="video- hs-test-01data/graphics/spots/object0.m4v" loop="false" pausedonstart="true" align="center" alpha="0" onclick="action(closeglobalobjects);tween(alpha, 0);delayedcall(0.5,set(visible,false));stop();" width="400" height="300"/>
    <hotspot name="spot1" handcursor="false" url="video- hs-test-01data/graphics/videoplayer.swf" videourl="video- hs-test-01data/graphics/spots/spot1.flv" loop="false" onclick="action(closeglobalobjects);togglepause()" distorted="true" ath="20.7369" atv="17.9641" width="240" height="257" rx="8.56886" ry="-10.3617" rz="3.63307"/>
    <!-- close all hotspots -->
    <action name="closeallobjects">set(plugin[spot0object].alpha, 0);set(plugin[spot0object].visible,false);plugin[spot0object].stop()</action>
</krpano>

Last edited by mediavets (2010-10-11 16:40:58)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2010-10-21 12:12:30

urke
Member
Registered: 2007-11-06
Posts: 59

Re: Video hotspot loop

@mediavets
Very helpful, thank you!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson