Image Show & Audio Play

Discussions about CSEntry
vipul315singhal
Posts: 16
Joined: March 28th, 2013, 9:17 am

Image Show & Audio Play

Postby vipul315singhal » February 8th, 2018, 2:16 am

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

Re: Image Show & Audio Play

Postby aaronw » February 8th, 2018, 5:17 pm

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: 16
Joined: March 28th, 2013, 9:17 am

Re: Image Show & Audio Play

Postby vipul315singhal » February 12th, 2018, 3:19 am

I got it.

Thank You very much aaronw!

Regards
Vipul


Return to “Entry”