View Single Post
  (#1 (permalink)) Old
aravi Offline
New Member
 
Posts: 12
Join Date: Feb 2006
Model: 7290
Default How to pause audio? - 10-20-2006, 02:39 AM

I am trying to play audio(WAV) file with 7100i simulator. It is playing perfectly.

But I want to "Pause" the audio and then "resume" it from where it paused. This is not working for me. Whenever I click on "resume" menu-item, it is playing from the beginning.

The code is given below.

public void pausePlay()
{
try
{
if (_player != null)
{
_player.stop();
}
}
catch(Exception e)
{

}
}

public void resumePlay()
{
try
{
if (_player != null)
{
_player.start();
}
}
catch(Exception e)
{

}
}

Somebody please help me.

Regards,
Ravi
   
Sponsored Links
Please Login or Register to Remove these Advertisements!