videoplayer plugin (beta)

  • Hi everibody, i think there is a bug when the plugin video and sound are on the same scene; i try to load soundinterface.swf and videoplayer.swf on plugins but.. no video playing on my pano

  • hi, probleme solved with the new version of video plugin for flash player 10.1:
    Videoplayer.swf and Adobe Flash Plaer to version 10,1,53,64 - problem

    my version of krpano: 10.8.11 and flash player:10.1

    the probleme: when i create this xml code with the version of videoplayer included in the package KRpano the video don't appear on the pano:

    but if y replace in the xml code

    Code
    onloaded="togglepause()"

    by

    Code
    pausedonstart="true"

    the probleme disapear
    probleme disapear too when, instead of changing the onloaded and pausedonstart parameters, i change the version of video plugin by the version optimised for flash player 10.1
    Sorry, but finally the plugin sound don't interfere with all that *unsure*

  • Hello Klaus,
    First I want to wish you an Happy New Year !! *thumbsup* *thumbsup*

    I have a problem with video, used as plugin ...


    Here is my code, I want the video NOT to start at the beggining of the tour, but unfortunnately, it starts ...
    I haven't this problem when I use video as an hotspot.

    What is wrong with my code ? *g*

    Cheers,

    Flow

  • i think this is a known bug. check the video forums i believe klaus posted a fix videoplayer.swf. if not you could cheat. make the video invisible, set the volume to 0, use the onstart action to pause the video very first thing. after it is paused have it switch visible and increase the volume. kindsa sucks but should work. first check for the updated video player i dont have enough time this morning to find the post for you.

  • Problem:
    The first time the video is displayed, I can hear the sound of the .flv video.
    The second time and following does not work, the .flv video is deaf.

    [...]
    <plugin name="videoplayer"
    url="gui/videoplayer.swf"
    visible="false"
    enabled="true"
    keep="true"
    align="center"
    edge="center"
    width="640"
    height="360"
    volume="1"
    pausedonstart="false"
    onclick="togglepause();"
    />
    [...]

    [...] button ON
    OnClick = "
    set(plugin[btn_video_on].visible, false);
    set(plugin[btn_video_off].visible, true);
    set(plugin[videoplayer].visible, true);
    plugin[videoplayer].playvideo(myvideo.flv);
    "
    [...] button OFF
    OnClick = "
    set(plugin[btn_video_off].visible, false);
    set(plugin[btn_video_on].visible, true);
    set(plugin[videoplayer].visible, false);
    plugin[videoplayer].closevideo();
    "

  • I have my 360 video working well..similar to: https://krpano.com/video/video.html

    All I need help with is adding controls such as Play, Pause and Stop. Can anyone help? I know this must be child's play to most of you. Here is a copy/paste from my xml. Any help is appreciated.

    <krpano version="1.0.9">
    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmax="360" limitview="range" vlookatmin="-360" vlookatmax="360" />


    <!-- load and control the video with the videoplayer plugin -->
    <plugin name="video"
    url="videoplayer.swf"
    videourl="panop.mp4"
    />

    <!-- define the pano image and get the pano video from the videoplayer plugin -->
    <image>

    <sphere url="plugin:video" />
    </image>

    <autorotate enabled="true"
    waittime="1.5"
    speed="5.0"
    />

    <!-- the startup view settings -->
    <view hlookat="+51" vlookat="0" fov="100" />

    <!-- 3d geometry details/accuracy -->
    <display details="20" />

    <!-- the krpano logo image -->
    <plugin name="logo"
    url="krpano_logo.png"
    align="rightbottom"
    x="10" y="10"
    enabled="false"
    />

    <!-- include the options plugin for interactively playing with the view and display settings -->


    <!-- add a right-click context menu for changing the viewing settings -->
    <contextmenu>
    <item caption="KRPANO" />
    <item caption="FULLSCREEN" />
    <item caption="normal view" onclick="action(view_normal);" separator="true" />
    <item caption="wide view (archi+pannini)" onclick="action(view_wide);" />
    <item caption="fisheye view" onclick="action(view_fisheye);" />
    <item caption="architectural view" onclick="action(view_architectural);" />
    <item caption="stereographic view" onclick="action(view_stereographic);" />
    <item caption="pannini view" onclick="action(view_pannini);" />
    <item caption="little planet view" onclick="action(view_littleplanet);" />
    </contextmenu>

    <action name="view_normal">
    tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad);
    tween(view.architectural, 0.0, distance(1.0, 0.45), easeoutquad);
    tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); );
    </action>

    <action name="view_wide">
    set(backtonormalfirst,false);
    if(view.pannini == false, set(backtonormalfirst,true) );
    if(view.stereographic == false, set(backtonormalfirst,true) );
    if(backtonormalfirst, tween(view.fisheye, 0.0, 0.3, easeoutquad, WAIT); );
    set(view.pannini, true);
    set(view.stereographic, true);
    set(view.fovmax, 150);
    tween(view.fisheye, 1.0, 0.5);
    tween(view.fov, 100.0, 0.5);
    tween(view.architectural, 0.33, 0.5);
    </action>

    <action name="view_fisheye">
    tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad);
    tween(view.fisheye, 0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
    </action>

    <action name="view_architectural">
    tween(view.fovmax, 150.0, distance(179, 1.00), easeoutquad);
    tween(view.architectural, 1.0, distance(1.0, 0.45), easeoutquad);
    tween(view.fisheye, 0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false); );
    </action>

    <action name="view_stereographic">
    tween(view.architectural, 0.0, 0.25);
    set(backtonormalfirst,false);
    if(view.pannini == true, set(backtonormalfirst,true) );
    if(view.stereographic == false, set(backtonormalfirst,true) );
    if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
    set(view.pannini, false);
    set(view.stereographic, true);
    set(view.fovmax, 150);
    tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
    </action>

    <action name="view_pannini">
    tween(view.architectural, 0.0, 0.25);
    set(backtonormalfirst,false);
    if(view.pannini == false, set(backtonormalfirst,true) );
    if(view.stereographic == false, set(backtonormalfirst,true) );
    if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
    set(view.pannini, true);
    set(view.stereographic, true);
    set(view.fovmax, 150);
    tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
    </action>

    <action name="view_littleplanet">
    tween(view.architectural, 0.0, 0.25);
    tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
    set(backtonormalfirst,false);
    if(view.pannini == true, set(backtonormalfirst,true) );
    if(view.stereographic == false, set(backtonormalfirst,true) );
    if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
    set(view.pannini, false);
    set(view.stereographic, true);
    set(view.fovmax, 150);
    tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
    tween(view.fov, 150, distance(179, 0.75), easeoutquad);
    </action>

    </krpano>

  • Thanks Sach and Klaus I'm all set now...

    All I need is to incorporate that lovely "progress bar loop" at the beginning of the video while it's loading. I've search for the past hour and no in depth info. Since the 360 videos are not created via a droplet the progress bar loop is not included. Any way I can include this for 360 video? Thanks again guys!

  • Hi Sacha, unfortunately I don't seem to have an examples folder. Would you have an example of the xml file showing the code for progress bar loop?

    I'd love to show you all my project, it's actually pretty cool and quite unique. I think I'll be all set once I can nail down the progress bar situation. As it stands now a visitor only sees a black screen without any visual verification that something is downloading from the server.

  • Right.
    It's here in http://www.krpano.com/download/

    You're video ground is virgin to me, so I don't know what/how anything works in what you're saying. But I'd certainly hack away at it.
    From what I know video, loading as hotspot, and the available actions.. doesn't allow for a live progress, only a complete.
    You could show a loading graphic when you start and remove it when it's downloaded. Then it might be annoying if you play it before it's finished loading using the buffer.
    How you set a percentage progress for a hotspot or plugin is beyond me at this moment.
    Then again, it looks like this is something quite special in your source code with the sphere url's source being your video, so it might work just fine.

    Anyway, download the "viewer" package which you should have already had.

  • Thanks for your help Sacha. What I have created is similar to the 360 video seen here: http://www.edmontonjournal.com/sports/story.html?id=4227720 In this example you can see the looping progress circle while the video is buffering...this progress buffering circle is what I'd like to add to my own 360 video. I'm looking through the "examples" folder you've mentioned but don't see any examples of how I can incorporate this by editing an xml file.

  • I've looked over the info in the above xml file but none of the tricks worked for me. He's using a different method than I am.

    I've learned a ton in the past 24 hours, I've even included some features that I've stumbled upon by accident *smile* but I still cannot figure out how to add the progress/buffering ring. I'm assuming it's embedded in the krpano.swf file? How do you call it? I've tried <progress showload="yes" /> but that did not work.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!