Can you help me about the syntax error if()?

  • Hi,

    the if() action has three parameters:
    - the condition
    - the true-case-actions
    - and the false-case-action

    See:
    https://krpano.com/docu/actions/#if

    In your code you have added four parameters and that doesn't make sense...

    Code
    if(device.ios,
    <!-- iOS Safari has a very slow 'video-to-webgl-texture' transfer, therefore use a low-res video by default -->
        videointerface_play('1024x512');
      ,
        videointerface_play('1920x960');
      ,
        videointerface_play('2560x1440');
      );


    Decide what you want to do - either a a 1920x960 or a 2560x1440 video in the non-iOS case... or add another if for more chooses...

    Best regards,
    Klaus

Participate now!

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