usage of hotspot[myvideo].is paused

  • i run a video as an hotspot, whose name is spot221, and want to detect if it is playing or not, in order to have different action upon the case (updating some buttons)
    i use in the video onclick="action(alterne)"

    and
    <action name="alterne">
    if(hotspot[spot221].ispaused=="true"),
    set(plugin[bt_joue1].visible,true);
    set(plugin[bt_joue2].visible,false);
    hotspot[spot221].play(),
    set(plugin[bt_joue1].visible,false);
    set(plugin[bt_joue2].visible,true);
    hotspot[spot221].pause();
    </action>

    this doesn't work, but if i delete the condition if(hotspot[spot221].ispaused=="true"), the action on the button can works
    I feel some syntax in my condition is wrong, but i don't find real example or documentation on how to use it !

    could you help me

  • Hi,

    the syntax is slighly wrong:
    if(hotspot[spot221].ispaused=="true"),

    the correct syntax would be: (see the red marked parts)
    if( ...condition... , ...true-actions... , ...false-actions... );

    e.g. in your case this would be:

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!