Videoplugin startet automatisch

  • hallo

    ich habe mir mal eine Videoplugin Code
    und habe da noch Probleme mit:

    1.warum startet das Video automatisch -es soll doch erst starten wenn der Hotspot gedrückt wird ?
    2.warum muss die Grösse des Videos auf 0.001 stehen ? - wenn es auf 1.0 steht wird es überdimensional gross ?

    danke


    " <hotspot name="hs2"
    url="plugins/videoplayer.swf"
    keep="false"
    zoom="false" distorted="true"
    width="320" height="200"
    scale="0.001" scale9grid="1" scalechildren="false" rotate="2"
    rx="0" ry="0" rz="0"
    edge="center" ox="" oy=""
    crop="" ondowncrop="" onovercrop=""
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal" smoothing="true"
    refreshrate="auto"
    onloaded=""
    onover=""
    onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
    onout=""
    ondown=""
    onup=""
    onclick="togglepause();"
    buffertime="0.1"
    directionalsound="true"
    flying="0"
    loop="true"
    onvideocomplete=""
    pausedonstart="false"
    range="110"
    updateeveryframe="true"
    videourl="Video.flv"
    volume="0.7"

    >
    <point ath=" 0.246515" atv=" 0.011631" />
    <point ath=" 0.246515" atv=" 0.004367" />
    <point ath=" 0.254557" atv=" 0.003070" />
    <point ath=" 0.263897" atv=" 0.003675" />
    <point ath=" 0.266054" atv=" 0.002032" />
    <point ath=" 0.267092" atv="-0.003935" />
    <point ath=" 0.267957" atv="-0.004627" />
    <point ath=" 0.268908" atv="-0.006529" />
    <point ath=" 0.270383" atv="-0.004886" />
    <point ath=" 0.272289" atv="-0.002638" />
    <point ath=" 0.273669" atv=" 0.003329" />
    <point ath=" 0.273582" atv=" 0.004713" />
    <point ath=" 0.272540" atv=" 0.020798" />
    <point ath=" 0.270296" atv=" 0.021836" />
    <point ath=" 0.268307" atv=" 0.022787" />
    <point ath=" 0.265112" atv=" 0.021749" />
    <point ath=" 0.258535" atv=" 0.022009" />
    <point ath=" 0.254129" atv=" 0.022009" />
    <point ath=" 0.251012" atv=" 0.021317" />
    </hotspot>"

  • Damit das Video beim start nicht automatisch abläuft setze pausedonstart="false" auf pausedonstart="true". Und versuch das Video mal in ein Plugin zu setzen und nicht in einen Hotspot. Also anstelle von....

    <hotspot name="hs2".....

    nimmst Du folgendes

    <plugin name="hs2"......

    Infos zum Plugin findest Du in der Doku!

    Gruß,
    Nupsi

  • danke für die Antwort, das Video pausiert jetzt bei Start

    nur Hotspot umbennung
    verstehe ich leider nicht :

    wie kann Hotspot ein Plugin werden ?

    das Video soll starten wenn man ein hotspot drückt:


    " <hotspot name="hs2"
    url="plugins/videoplayer.swf"
    keep="false"
    zoom="false" distorted="true"
    width="320" height="200"
    scale="0.001" scale9grid="1" scalechildren="false" rotate="2"
    rx="0" ry="0" rz="0"
    edge="center" ox="" oy=""
    crop="" ondowncrop="" onovercrop=""
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal" smoothing="true"
    refreshrate="auto"
    onloaded=""
    onover=""
    onhover="if(ispaused, showtext(click to play), showtext(click to pause));"
    onout=""
    ondown=""
    onup=""
    onclick="togglepause();"
    buffertime="0.1"
    directionalsound="true"
    flying="0"
    loop="true"
    onvideocomplete=""
    pausedonstart="false"
    range="110"
    updateeveryframe="true"
    videourl="Video.flv"
    volume="0.7"

    >
    <point ath=" 0.246515" atv=" 0.011631" />
    <point ath=" 0.246515" atv=" 0.004367" />
    <point ath=" 0.254557" atv=" 0.003070" />
    <point ath=" 0.263897" atv=" 0.003675" />
    <point ath=" 0.266054" atv=" 0.002032" />
    <point ath=" 0.267092" atv="-0.003935" />
    <point ath=" 0.267957" atv="-0.004627" />
    <point ath=" 0.268908" atv="-0.006529" />
    <point ath=" 0.270383" atv="-0.004886" />
    <point ath=" 0.272289" atv="-0.002638" />
    <point ath=" 0.273669" atv=" 0.003329" />
    <point ath=" 0.273582" atv=" 0.004713" />
    <point ath=" 0.272540" atv=" 0.020798" />
    <point ath=" 0.270296" atv=" 0.021836" />
    <point ath=" 0.268307" atv=" 0.022787" />
    <point ath=" 0.265112" atv=" 0.021749" />
    <point ath=" 0.258535" atv=" 0.022009" />
    <point ath=" 0.254129" atv=" 0.022009" />
    <point ath=" 0.251012" atv=" 0.021317" />
    </hotspot>"

  • Aus Deiner Erklärung wird leider nicht ganz klar was Du eigentlich erreichen möchtest, roberto. Soll ein Video eingeblendet werden wenn Du auf einen Hotspot klickst? Falls ja, erstelle den Hotspot und setze in den onclick-tag den Aufruf einer <action>....

    onclick="startvideo()" oder onclick="action(startvideo)"

    und in die action(startvideo) legst Du eine addplugin-routine....

    addplugin(video);
    set(plugin[video].url,plugins/videoplayer.swf);
    set(plugin[video].videourl,Video.flv);
    .......
    set(plugin[video].onvideocomplete,removeplugin(video));

    Wenn Du einen Videohotspot setzen möchtest, welcher permanent das erste Frame zeigt, aber erst auf einen Klick startet, stimmt der Weg von Dir schon so weit. Falls nicht unbedingt notwendig, würde ich jedoch auf den polyhotspot verzichten. Ansonsten suche mal im Forum, da gibt es schon einige Beiträge zu video-polyhotspots.

    Gruß,
    Nupsi

  • ok super. danke

    das Video soll eingeblendet werden wenn ich auf einen Hotspot klicke

    wie lege ich die Position des Videos fest bzw. nach welcher Methode positioniert
    der KRPANO das Video ?

  • kann mir jemande den Code
    posten mit dem ich ein Video
    per hotspot starte bzw folgende Atribute hat:

    1.Position
    2.und nach Ende des Videos soll das Video Pop up
    verschwinden.

    irgendwie klappt es hiermit nicht:

    <action name="showVideo">
    set(hotspot[hs1].onclick,hideVideo(););
    set(plugin[video].visible,true);
    plugin[video].play();
    </action>
    <action name="hideVideo">
    set(hotspot[spot1].onclick,showVideo(););
    set(plugin[video].visible,false);
    plugin[video].stop();
    </action>

    <hotspot name="hs1"
    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 ="0.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="showtext(IV. Mechanische Werkstatt
    In den mechanischen Werkstätten wurden Maschinen und Maschinenteile her adsf f)"
    onout=""
    ondown=""
    onup=""
    onclick="plugin[video].play(); set(plugin[video].visible,true);"
    devices="all"
    editor=""

  • so geht es

    <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!