You are not logged in.

1

Saturday, September 17th 2016, 6:12pm

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

Dear Klaus, now all works well!!!! (version pr7).

Can you help me about the syntax error if()? ...
I worked using our "videopano.xml" example.

Thank you

Francesco

2

Monday, September 19th 2016, 11:07am

Hi,

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

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

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

Source code

1
2
3
4
5
6
7
8
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