Page 1 of 1

Image Show & Audio Play

Posted: February 8th, 2018, 2:16 am
by vipul315singhal
Hi all,

Hope you are doing good.

This is regarding Image Show and Audio play for a particular question.
I want to show an image and play a prerecorded audio for different question .

Can we do this in the current version of CsPro? If yes, could you please help me out on this.

Many Thanks in Advance!

Regards
Vipul

Re: Image Show & Audio Play

Posted: February 8th, 2018, 5:17 pm
by aaronw
Take a look at ExecSystem (Mobile). Note that you call execsystem differently depending on the operating system. Execsystem will open an image file or audio file with the default application (if installed). You may have difficulty running both commands simultaneously. With the below logic the audio would start, then stop, and the image would load on my device.
if getos() = 20 then
    // Android only
    execsystem("view:" + pathname(Application) + "./audio.mp3");
    execsystem("view:" + pathname(Application) + "./picture.jpg");
endif;

Re: Image Show & Audio Play

Posted: February 12th, 2018, 3:19 am
by vipul315singhal
I got it.

Thank You very much aaronw!

Regards
Vipul