Posts by VinzVideo

    Thank you, Klaus.
    Maybe that's it...that Timebar was written for an older version of Videoplayer.js? If that's the case, then Timebar should not work for anyone using 1.19.3.
    I haven't seen any posts about that.

    Using HTML5, I see the timebar flash on/off briefly, in the center of the screen, not attached to the video.
    Same problem occurs in Chrome, or IE.

    There's nothing I can do to fix this, it seems. I think all videos really should have a timebar, people expect that. Do you know of any other solution?

    Thanks.

    I'm trying to use videoplayer, and specifically to have the videourl set by an action.....

    In my video plugin name="vid1", I have
    videourl=""
    etc......

    Then I have this action..
    <action name="show_vid1" devices="desktop">
    set(plugin[vid1].visible, true);
    set(plugin[vid1].videourl, '../videos/test_video.mp4');
    set(layer[blackout].visible, true);
    tween(plugin[vid1].width, 800, 0.6);
    tween(layer[blackout].alpha,1,0.7);
    plugin[vid1].play();
    set(autorotate.enabled, false);
    </action>

    This isn't working, I tried many, many different variations, but the video does not show.
    If I define the video file in the plugin, instead of in the action, it works fine.

    Is it allowed to have the videourl changed by an action?

    Thank you.

    v

    Seems like everyone but just a few can get the timebar to work...I'm one of the few.

    The video works, but I can't get the timebar to appear using the following code, which follows the examples given...

    Code
    <plugin name="vid1" visible="false" url.flash="../plugins/videoplayer.swf"  url.html5="../plugins/videoplayer.js"  videourl="../videos/test_video.mp4"  posterurl=""  align="center" x="0" y="0"  pausedonstart="true" loop="false"  width="600"  height="prop"  volume="1.0" preferredformat=""  buffertime="0.1" ignoremetadata="false"  onvideoready="do_time_bar(vid1,vid1);"  onvideoplay=""  onvideopaused="" onvideocomplete="plugin[vid1].stop(); set(plugin[vid1].visible, false); set(autorotate.enabled, true);"  onerror="" keep="true"  onclick="plugin[vid1].togglepause();"       />
    Code
    <action name="show_vid1">set(plugin[vid1].visible, true);plugin[vid1].play();set(autorotate.enabled, false);</action>

    I tried changing many things. If I use the example of putting the timebar on the stage, it works, but I can't get it to attach to the video plugin.
    I realize this is a beginner question, but I would appreciate any help you can offer.

    Thanks.

    UPDATE:
    I do most of my testing using the krpano server. Timebar did not work using the server, but works when running the file locally.
    Now my head is really spinning - this doesn't make sense to me. No error messages, so I don't know what to look for.

    This should do the trick not to zoom the pano while on the menu or slider. Have to see if it would be possible to capture scroll while outside of the scrollarea.
    I like very much your menu design.

    Thank you! Sorry, I haven't logged in for a while. I will try this later today, I hope.
    Thanks also for your compliment.

    v

    UPDATE:
    I tried adding the code you supplied...it works if the cursor is over the scroll grip, but not on the empty space to the left of the grip...as you said.
    I don't quite understand the entire menu code, so I don't know how to experiment on my own.

    Thanks.

    Hello, Klaus. Thank you.

    I'm still deciding how to proceed. I have removed the arrow buttons, but kept the + and - buttons. I still want the + and - to disappear on a small screen, or if the window is resized to a small size...so I guess I need to keep "skin_arrange_ buttons" action. Maybe I can remove just the sections that control the gyro button. That will take a lot of trial and error I suppose.

    I realize that experienced and professional programmers, or code writers, get annoyed with simple newbie questions. I would too!
    But I do research and think thru a problem before I ask for help. Sometimes I find an answer myself, sometimes not.

    Thanks to all again.
    v

    Thanks.
    Yes, I concluded that the skin_arrange_buttons action will re-arrange the buttons.
    I can't understand how the action works, or what settings to adjust.

    Just thought maybe someone else had already gone thru this. Of course, the easy answer is to simply disable gyro.

    v

    Thanks. I'll try it but...

    This is the gyro layer in vtourskin.xml:

    Code
    <layer name="skin_btn_gyro"      style="skin_base|skin_glow" crop="0|384|64|64"  align="right"      x="40" y="0"  scale="0.5" onclick="switch(plugin[skin_gyro].enabled); switch(layer[skin_btn_gyro].crop, '0|384|64|64', '64|128|64|64'); if(plugin[skin_gyro].enabled, skin_showmap(false));" visible="false" devices="html5" />


    Align is already in there. I tried many things, with align and with x=, and nothing changes it.
    There is an action called skin_arrange_buttons that does a lot of stuff that I can't begin to understand.
    Trying to understand what someone else wrote is difficult for me. I even forget things I wrote a week ago.

    v

    I actually published my first job! It's a real estate tour.

    I have gryo activated, and I want to control the position of the button...but nothing seems to change its position.
    In the control bar layers, the button is already aligned right, that's the default, but when the tablet is held landscape, the button moves. I would like the button to always stay next to the fullscreen button, if possible.
    I think it has something to do with the resizing/positioning action, but I really can't understand that section of code.

    I removed the layers for the pan and tilt buttons (commented out), because I wanted the space, and they're not really needed. So that might affect the positioning too.

    Hopefully this newbie didn't get in too deep. The gyro button works, and I even have it changing color, but I can't control its position.

    If you want to take a look:
    http://www.sightagent.com/760newlins

    If you have any tips to offer, I would appreciate it.
    Thanks.

    v

    I like this idea. Tried to implement it, but it doesn't seem to work for me.
    I'm using it to change the appearance of a Rotate On/Off icon, instead of the gyro.

    The rotation does switch on/off, but the icon does not change.

    Does anyone see an error in the code? It looks good to me. Thanks.


    Code
    <layer name="skin_btn_rotate"       style="skin_base|skin_glow" crop="0|510|64|64" align="left"    keep="true"    x="90"   y="0"  scale="0.55" onclick="switch
    (autorotate.enabled); switch(layer[skin_btn_rotate].crop, '0|510|64|64|64|510|64|64'); "  />

    Anyone have an idea why this only works when testing the tour.html file locally...but not on a server (either krserver, or a web server)?
    I can't figure out why it works in one case, but not the other.

    <plugin name="clipboard" url="../plugins/clipboard.swf" keep="true" />


    <action name="email_clipboard">
    set(plugin[clipboard].text, "person@rcn.com");
    </action>

    I tried using %SWFPATH% in the plugin path, but that didn't work either.

    Of course I have an onclick event to call the action.

    Thanks.

    The best way to describe the situation is to let you see it.
    http://www.sightagent.com/moravian

    This site is under development, so the links in the menu don't all work, just 4 work.
    If you wheel over the menu elements, the scroll works good. But if you wheel over the slider grip, or the empty space next to it, then you zoom the pano.
    Is this normal, or is there a setting to adjust this? I tried changing many different settings, but no luck.
    Yes, I did customize the appearance of the menu, modified color set 1.

    Thanks yet again.

    v

    Thank you for your help.
    I'm wondering if there is a setting to turn on mousewheel control of menu scrolling? I have hovering turned on, and it works good, but I am conditioned to using the mousewheel for scrolling, like for the textfield plugin.
    If it is not available, no problem.

    v

    UPDATE:
    Interesting observation...in Fullscreen mode, mousewheel scrolling works; but in normal mode it does not.

    UPDATE 2: Mousewheel scrolling works if tested on the krServer. Therefore, it does work good, in all modes.

    Sorry to raise a non-ussue! Thanks.

    This was already addressed, but I can't find the right place.....

    to change the position of the menu. Another post said it was an align tag, unfortunately, there are many many align tags.
    Can you say which one it is?

    Thanks.

    OK, more success, and a problem!

    I got my first menu item to switch visibility on a layer...works great.
    However, the menu does not auto-close, it remains open. I need it to auto close. Actually, auto-close does not work for the showlog examples you provided either. But it does work for the items that have linkedscenes.

    What should I do now?

    v

    UPDATE:
    OK, got it. Have to add another "menu_close();" after the execute attribute.
    (Yes, I do know that "execute" is an attribute, not an action. Thanks.)

    Not sure I understand how to customize the menu.
    I want to have menu items that are NOT linked scenes, I need menu items that perform onclick events such as, switch layer visibility, or open up a photo gallery. I am doing this now with custom buttons, but it would be nice to replace the buttons with the menu system.

    I read this forum, and you have lots of examples, but could you please give a short example of onclick="switch(layer[my_layer].visible);"

    On this sample tour, I have 6 custom buttons on the left. I would like to replace them with the menu system.
    http://www.sightagent.com/steelstacks

    Thank you!

    v

    UPDATE:
    I copied the example you gave for showlog true/false (above), and it works. Now I'll have to create new actions to switch layer visibility, launch photo gallery, etc. to replace the showlog action.
    I think my confusion came from not understanding the new line 166. I know it's substituting an action for a linkedscene, but I can't understand how it works. I will probably never understand it, cause I'm not a coder, just a newbie, and 64 years old too.
    Thanks.

    Well, I'm, stuck. Looks to me like the code is good, but nothing gets copied into the clipboard.
    Anyone have a clue for me?? Here's what I'm using...

    <plugin name="clipboard" url="%SWFPATH%/plugins/clipboard.swf" />


    <layer name="copy_email" url="../plugins/textfield.swf" keep="true" zorder="1000"
    align="center" x="-8" y="-40"
    width="140" height="24"
    visible="false"
    vcenter="true"
    selectable="false"
    background="true"
    backgroundcolor="0x04367b"
    borderwidth="0" roundedge="8"
    alpha="1"
    html="Copy Agent Email"
    css="font-family:arial; font-size:12px; text-align:center; color:#dddddd; "
    onclick="do_clipboard()"
    />


    <action name="do_clipboard">
    set(plugin[clipboard].text, "any_email");
    </action>

    No parsing errors. The textfield appears, but nothing gets copied.

    Thank you.

    v

    UPDATE:
    Got it to work......by putting Keep="true" in the plugin statement for clipboard.swf.
    But none of the examples showed this...so I assume that the examples didn't work either.
    Thanks.