Video hotspot loop  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
no avatar
urke
Member
 
Topic author
Posts: 83
Likes: 0 post
Liked in: 2 posts
Joined: Tue Nov 06, 2007 1:49 pm
Info

Video hotspot loop

by urke » Sun Oct 10, 2010 10:13 pm

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

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Sun Oct 10, 2010 11:03 pm

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?page=Thread&threadID=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: Select all
<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 on Mon Oct 11, 2010 3:40 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
urke
Member
 
Topic author
Posts: 83
Likes: 0 post
Liked in: 2 posts
Joined: Tue Nov 06, 2007 1:49 pm
Info

by urke » Thu Oct 21, 2010 11:12 am

@mediavets
Very helpful, thank you!


Who is online

Users browsing this forum: No registered users and 2 guests