Image Show & Audio Play

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
vipul315singhal
Posts: 25
Joined: March 28th, 2013, 9:17 am

Image Show & Audio Play

Post 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
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Image Show & Audio Play

Post 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;
vipul315singhal
Posts: 25
Joined: March 28th, 2013, 9:17 am

Re: Image Show & Audio Play

Post by vipul315singhal »

I got it.

Thank You very much aaronw!

Regards
Vipul
Post Reply