![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
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
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:
<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)
Offline
@mediavets
Very helpful, thank you!
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
