Jump to content

play sound mobile in timer


Wilton Ergon

Recommended Posts

I want to give an example in my mobile application,

the sound is not triggered by a click,

but in a timer when I identify a specific situation,

and I checked the uniGUI\Demos\Desktop\HTML5 Audio example,

but I could not adapt it to the project Mobile

 

ex:And only one example

 

procedure Playsound (file: string);

begin

  Myplayer.file := 'files \' + file;

  Myplayer.play; 

end;

 

procedure TMainForm.UnimTimer1Timer(Sender: TObject);

 begin

  try

   UnimTimer1.Enabled :=false;

   if condition then

       playsound('alert.wav');

 finally

    UnimTimer1.Enabled :=true;

  end; 

end;

 

Need to trigger the sound on the client side,

on the mobile device

 

delphi xe6

unigui 1381

windows 8.1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...