• ich möchte den Panoramaviewer KRPano bei einer interaktiven Touchstation einsetzen,

    gezeigt werden ein Flat Panorama, ein spherisches Panorama und ein Video im
    Fullscreen. Leider habe ich bei der Progammierung von den Videohotspots einige Probleme.

    in dem spherischen Panorama gibt es 6 Hotspots die mit Videos verknüpft werden
    und in dem flat Panorama sind es 14

    Erläuterung:
    bei Berühren des polygones Hotspots soll ein Videopopup sich mittig in den
    Screen öffnen und soll mittig im Screen stehen bleiben- bei klick auf das Videofenster soll
    es wieder verschwinden.

    Ich benutze ein Code aus dem KRpano Forum:


    <hotspot name="bildschirm"
    keep="false"
    visible="true" enabled="true" handcursor="true" capture="true"
    children="true"
    zorder="0"
    fillcolor ="0xffffff" fillalpha ="0.00" borderwidth
    ="0.0" bordercolor ="0xffffff" borderalpha ="0.80"
    fillcolorhover="0xffffff" fillalphahover="0.10"
    borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
    fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100"
    fadeoutcurve="0.700"
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick="switch(hotspot[video].visible);"
    details="8"
    effect=""
    flying="0"
    inverserotation="false"
    usecontentsize="false"
    >
    <point ath="-44.0938" atv=" -8.6282" />
    <point ath="-42.3245" atv="-10.9160" />
    <point ath="-26.8587" atv="-10.0315" />
    <point ath="-27.1238" atv=" 5.5898" />
    <point ath="-40.5356" atv=" 5.8215" />
    <point ath="-40.6890" atv=" 2.3115" />
    <point ath="-42.8438" atv=" 1.4801" />
    <point ath="-44.0214" atv=" 1.5140" />
    </hotspot>

    <hotspot name="video"
    url="videoplayer.swf"
    videourl="video.flv"
    distorted="false"
    visible="false" enabled="true" handcursor="true" capture="true"
    children="true" usecontentsize="false"
    zorder="0"
    alpha="1.00" blendmode="normal" effect="" smoothing="true"
    align="center" edge="center"
    zoom="false"
    ath="-20" atv="0"
    x="90" y="400" ox="" oy=""
    width="900" height="415"
    crop="" ondowncrop="" onovercrop=""
    scale="1" scalegrid="" scalechildren="false"
    loop="false"
    onvideocomplete="set(hotspot[video].visible,false);"
    pausedonstart="true"
    directionalsound="true"
    range="110"
    volume="0.7"
    visible="false"
    onhover="if(ispaused, showtext(click to play, videohoverstyle),
    showtext(click to pause, videohoverstyle));"
    onclick="togglepause();"
    />

    nur leider bleibt das "Videopopfenster" nicht stehen - es soll mittig stehen
    bleiben.
    und das Videofenster schliesst sich nur bei anklicken des Hotspots.

    anbei ein Link zu dem Projekt
    http://www.mediafire.com/?98alykbl9g75ghq


    vielen dank

  • so geht es bei Polygonen Hotspots

    <hotspot name="Mitte"
    keep="false"
    visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
    zorder="0"
    fillcolor ="0xff0000" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="0xff0000" borderalpha ="1.00"
    fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xff0000" borderalphahover="0.80"
    fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick="
    if(plugin[videospot] !== null, removeplugin(videospot));
    addplugin(videospot);
    set(plugin[videospot].url,%SWFPATH%/plugins/videoplayer.swf);
    set(plugin[videospot].align,center);
    set(plugin[videospot].x,10);
    set(plugin[videospot].y,20);
    set(plugin[videospot].updateeveryframe,true);
    set(plugin[videospot].videourl,m1.flv);
    set(plugin[videospot].volume,0.7);
    set(plugin[videospot].onhover,showtext('Durch erneutes Klicken schliesst sich das Fenster.'));
    set(plugin[videospot].onclick, removeplugin(videospot) );
    set(plugin[videospot].loop, false);
    set(plugin[videospot].onvideocomplete, removeplugin(videospot) );"
    editor=""
    >
    <point ath="-35.5530" atv=" 18.4997" />
    <point ath="-35.5930" atv=" 19.3575" />
    <point ath="-35.3321" atv=" 19.7149" />
    <point ath="-32.5682" atv=" 19.4953" />
    <point ath="-32.6225" atv=" 18.5096" />
    <point ath="-32.8088" atv=" 18.2314" />
    </hotspot>

Participate now!

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